![]() If you want the output like Tue Jul 26 15:20:, use the Epoch time as input to date: % date -d -c '%Y' a.out)" '+%a %b %d %T %Z %Y'Ĭheck date's format specifiers to meet your need. Set the format specifiers to suit your need. If you want the file name too, use %n: stat -c '%y : %n' filename The following command with the ls -r option display files and directories in reverse order. Using the -F option with the ls command will add the '/' character at the end of each directory. The first rwx is the read write execute file permissions for the creator. List Files and Directories with ‘/’ Character at the End. You might also be interested in what kind of file it is, file path-to-file will help you with that. The f option indicates that the JAR file whose contents are to be viewed is. For meta information like time, size and access rights, use. The t option indicates that you want to view the table of contents of the JAR file. Select the files you want in your list ( Ctrl + A if you want the entire folder). Use the stat command to know the details of the file. To get time in seconds since Epoch use %Y: stat -c '%Y' filename Following the first character you will see some combination of r,w,x, and -. Go to the folder you want to get a content list from. c lets us to get specific output, here %y will get us the last modified time of the file in human readable format. Don't use ls, this is a job for stat: stat -c '%y' filename If you happen to want a graphical solution, gnome-system-monitor allows you to see the opened file descriptors of a process.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |