Things You Can’t Do With a GUI: Finding Stuff on Linux

Things You Can’t Do With a GUI: Finding Stuff on Linux , by me, is full of great stuff like:

“How much space is left on my hard drive or drives? This particular incantation is one of my favorites because it uses egrep to exclude temporary directories, and shows the filesystem types:

$ df -hT | egrep -i "file|^/"
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 51G 3.6G 32G 11% /
/dev/sda3 ext4 136G 2.3G 127G 2% /home
/dev/sda1 ext3 244G 114G 70G 63% /home/carla/photoshare
/dev/sdb2 ext3 54G 5.8G 45G 12% /home/carla/music

What files were changed on this day, in the current directory?

$ ls -lrt | awk '{print $6" "$7" "$9 }' | grep 'May 22'

May 22 file_a.txt
May 22 file_b.txt

Read the rest on Linux.com!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>