Exploring our file systems

From XPUB & Lens-Based wiki
Revision as of 18:33, 20 January 2026 by Manetta (talk | contribs) (Created page with "==our file systems== understanding the limits of our file system $ df -h ==exercises== Navigating our file systems $ man find ===Count how many PDFs you have in the home folder on your computer=== $ find ~ | grep .pdf > pdfs.txt $ cat pdfs.txt | wc -l ===same for jpgs!=== as above, but with .jpg ===count how many folders you have on your computer=== $ sudo su $ cd / $ find -type d > /home/mb/folders.txt $ cat /home/mb/folders.txt | wc -l ===same for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

our file systems

understanding the limits of our file system

$ df -h 

exercises

Navigating our file systems

$ man find

Count how many PDFs you have in the home folder on your computer

$ find ~ | grep .pdf > pdfs.txt
$ cat pdfs.txt | wc -l 

same for jpgs!

as above, but with .jpg

count how many folders you have on your computer

$ sudo su
$ cd /
$ find -type d > /home/mb/folders.txt
$ cat /home/mb/folders.txt | wc -l

same for files!

-type f