stat c

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 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.

{ 3 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 }