Skip to content

How to get file creation date/time in Bash/Debian?

I’m using Bash on Debian GNU/Linux 6.0. Is it possible to get the file creation date/time? Not the modification date/time. ls -lh a.txt and stat -c %y a.txt both only give the modification time. Answer Unfortunately your quest won’t be possible in general, as there are only 3 distinct time values …

Ubuntu Python shebang line not working

Unable to get shebang line working in Ubuntu for python script. I only get a command not found error each time. test.py Ran Played around with different locations for python in the shebang but no luck including what was provided by which python. Any tips on how to troubleshoot this? Thanks Answer If you are t…

How to design GUIs on Linux and C++ [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I am new to Linux. …

Print md5sum of results of a find command in Linux

I am tryng to do checksum on all .jar files I can find in directory and its sub directories. Then print the filename with the checksum value to a file. this is what I have. I am trying to join two commands together that I know work individually. Any help appreciated. Answer You could use something like this t…

Generate LLVM C++ API code as backend

The Online LLVM demo page had an option to generate LLVM C++ API code as backend from a source code. However, that demo page is now disabled. I was wondering how we can do it ourselves using the available LLVM tools. I tried the following which gives the following error I am using LLVM/Clang version 3.2. Answ…

how to display linux partitions using python?

I am trying to display partitions of linux using python and i want to do it using APIs. I have just tried the following code to get the output. Answer df command used for – report file system disk space usage I think you required fdisk for Partition table manipulator for Linux. you can use either os.pop…

Buildroot : Which gcc for cross compilation?

I am newbee to buildroot. I can see multiple gccs in buildroot. I assume all are for cross compilation. What are the difference between those ? Answer The one you should use is buildroot-2012.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc. The other ones are purely internals binaries.