December 2018
Beginner
452 pages
12h 17m
English
On to the next interesting top-level directory within the Linux filesystem: the /etc/ directory. Pronounced et-c as in et-cetera, it is used to store configuration files for both system software as well as user software. Let's see what it contains:
reader@ubuntu:/etc# lsacpi console-setup ethertypes inputrc logrotate.conf network python3 shadow ucf.conf...<SNIPPED>:
We snipped the preceding output to only the top line of our system. If you followed along with the example (and you should!) you will see well over 150 files and directories. We will print a particularly interesting one using the cat command:
reader@ubuntu:/etc$ cat fstab UUID=376cd784-7c8f-11e8-a415-080027a7d0ea / ext4 defaults 0 0/swap.img none swap sw 0 0reader@ubuntu:/etc$ ...