File and Folder

Show file contents from tail with specific line number limit:

tail -n 200 <file>

Show file contents from head with specific line number limit:

head -n 200 <file>

Show only modified time of a file:

stat -c %y filename

Human-readable format:

stat -c %y filename | cut -d'.' -f1

File and directory size with sorting:

du -ah <folder-name>/ | sort -h

Revision #3
Created 14 November 2024 02:09:58 by Ahmad
Updated 20 November 2024 02:53:53 by Ahmad