stat command

How do I find out an inode (index-node) of a file under Unix like operating systems?

{ 3 comments }

I am a new Linux user. How do I find and list file sizes on Linux? How can I find out file size under Linux using bash shell/terminal prompt?

{ 1 comment }

How do I find out file size under UNIX / Linux operating system and store the same to a variable called s?

{ 9 comments }

How do I create 1 GB or 10 GB image file instantly with dd command under UNIX / Linux / BSD operating systems using a shell prompt?

{ 18 comments }

How do I find out if a file is more than one hour old in a UNIX shell and take action on all matching file such as delete or move files.

{ 2 comments }

Q. I need to find file permission and store the same to a shell variable. How do I find out the file permission without parsing ls -l output? A. Use GNU stat command to display file or file system status. It has option to display output in specific format. Display stat for /etc/passwd file Type […]

{ 2 comments }

Q. How do I display file inode number using command line? A. An inode is a data structure on a Unix / Linux file system. An inode stores basic information about a regular file, directory, or other file system object. You can use following two commands to display an inode: [a] ls command : list […]

{ 2 comments }