<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ihitc.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Jon_Lab_11</id>
	<title>Jon Lab 11 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ihitc.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Jon_Lab_11"/>
	<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Jon_Lab_11&amp;action=history"/>
	<updated>2026-04-05T22:29:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.5</generator>
	<entry>
		<id>https://wiki.ihitc.net/mediawiki/index.php?title=Jon_Lab_11&amp;diff=8355&amp;oldid=prev</id>
		<title>MikeTieden: Created page with &quot;=Introduction= =Lab Procedure= == Prerequisites == # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account  == Exploring /pr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ihitc.net/mediawiki/index.php?title=Jon_Lab_11&amp;diff=8355&amp;oldid=prev"/>
		<updated>2021-01-22T23:00:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Introduction= =Lab Procedure= == Prerequisites == # Open an SSH console to your Linux system using the PuTTY software, login with your standard user account  == Exploring /pr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introduction=&lt;br /&gt;
=Lab Procedure=&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
# Open an SSH console to your Linux system using the PuTTY software, login with your standard user account&lt;br /&gt;
&lt;br /&gt;
== Exploring /proc ==&lt;br /&gt;
# Enter the &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039; directory on your VM. &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039; is a very special folder is its a virtual filesystem. Its sometimes referred to as a process information pseudo-filesystem. The reason for calling it a pseudo-file system is that all of the &amp;quot;files&amp;quot; in &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039; are not really files at all, but kernel runtime configuration and system information.&lt;br /&gt;
# For example, use &amp;#039;&amp;#039;&amp;#039;cat cpuinfo&amp;#039;&amp;#039;&amp;#039; to view the contents of the &amp;#039;&amp;#039;/proc/cpuinfo&amp;#039;&amp;#039; &amp;quot;file&amp;quot;. Notice how the output tells your information about the CPU that is running the VM. This isn&amp;#039;t actually a file at all you are essentially asking the kernel to provide information about the CPU it&amp;#039;s running on which it gathers in realtime. &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039; is used not only to get hardware and kernel information, but it can also be used to tweak kernel settings while the system is running in a way similar to some Windows Registry edits. Look back on Lab 10 and notice how we echoed a &amp;quot;1&amp;quot; to a &amp;quot;file&amp;quot; in &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039; to enable packet forwarding without rebooting the system.&lt;br /&gt;
# There are a few files in &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039; you should get to know:&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/cpuinfo&amp;#039;&amp;#039;&amp;#039; = Shows you the CPU info for your machine.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/modules&amp;#039;&amp;#039;&amp;#039; = Shows you the currently enabled kernel modules that are active on your kernel.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/cmdline&amp;#039;&amp;#039;&amp;#039; = Shows you the boot arguments used to boot your kernel.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/version&amp;#039;&amp;#039;&amp;#039; = Shows you your kernel version.&lt;br /&gt;
# It is important to note that some of these files have commands tied to them that can give you similar information but often formatted in a different way, for example.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/modules&amp;#039;&amp;#039;&amp;#039; = &amp;#039;&amp;#039;&amp;#039;lsmod&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/mounts&amp;#039;&amp;#039;&amp;#039; = &amp;#039;&amp;#039;&amp;#039;mount&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/proc/version&amp;#039;&amp;#039;&amp;#039; = &amp;#039;&amp;#039;&amp;#039;uname -a&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Normally it is best to use the command version to lookup the information as it is normally formatted to be easier to read and understand.&lt;br /&gt;
# Explore all of these files and commands and find the differences between the command line and file output versions as well as what types of information are available.&lt;br /&gt;
== Exploring /dev ==&lt;br /&gt;
# Change directories to &amp;#039;&amp;#039;/dev&amp;#039;&amp;#039; and list the &amp;quot;files&amp;quot;. Notice there are A LOT, but don&amp;#039;t worry, there is organization in the mess. Each &amp;quot;file&amp;quot;, like in &amp;#039;&amp;#039;/proc&amp;#039;&amp;#039;, is actually a device or interface on the machine so &amp;#039;&amp;#039;/dev&amp;#039;&amp;#039; is actually another pseudo-filesystem. Here is a list of the most common interfaces you will see:&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/dev/sd*&amp;#039;&amp;#039;&amp;#039; = SATA Hard Drives&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/dev/hd*&amp;#039;&amp;#039;&amp;#039; = IDE Hard Drives&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/dev/vd*&amp;#039;&amp;#039;&amp;#039; = VirtIO (Virtualized) Hard Drives&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/dev/ttyS*&amp;#039;&amp;#039;&amp;#039; = Serial Interfaces on your PC.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;/dev/tty*&amp;#039;&amp;#039;&amp;#039; = Virtual Consoles, similar to the one you are using to enter commands. Mostly used by background programs or services.&lt;br /&gt;
# There are also some commands you should learn that will help you with detecting, and looking up devices:&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;lsusb&amp;#039;&amp;#039;&amp;#039; = List USB Devices (Bus, Device, ID, and advertised vendor)&lt;br /&gt;
#** Note: Many virtual machines do not include a virtual USB controller which means the USB drivers and software including &amp;#039;&amp;#039;&amp;#039;lsusb&amp;#039;&amp;#039;&amp;#039; are not installed.&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;lspci&amp;#039;&amp;#039;&amp;#039; = List PCI Devices (Bus, Type, Advertised Name, Revision)&lt;br /&gt;
#* &amp;#039;&amp;#039;&amp;#039;dmesg&amp;#039;&amp;#039;&amp;#039; = Display or Driver Message. This shows kernel messages that are normally linked to adding, or removing devices.&lt;br /&gt;
&lt;br /&gt;
== Adding a 2nd disk ==&lt;br /&gt;
# As you may have noticed when exploring &amp;#039;&amp;#039;/dev&amp;#039;&amp;#039;, our VM setup uses &amp;#039;&amp;#039;sd&amp;#039;&amp;#039; devices for hard drives. Drives are identified by a letter such as &amp;#039;&amp;#039;sda&amp;#039;&amp;#039;, &amp;#039;&amp;#039;sdb&amp;#039;&amp;#039;, &amp;#039;&amp;#039;sdc&amp;#039;&amp;#039;, etc. for the first, second, and third SATA drives on a system (including HDDs, CD/DVDs, SSDs, etc.). Each partition on the drive is then given a number starting with 0 for the first partition. So the first partition on the first disk, the full identifier for the partition would be &amp;#039;&amp;#039;/dev/sda0&amp;#039;&amp;#039;.&lt;br /&gt;
# You may also have noticed there is an &amp;#039;&amp;#039;sdb&amp;#039;&amp;#039; that currently has no partitions. We are going to format this drive into 2 partitions, format them, and then setup automatic mounting of the partitions.&lt;br /&gt;
# To start, run &amp;#039;&amp;#039;&amp;#039;cfdisk /dev/sdb&amp;#039;&amp;#039;&amp;#039; as root. &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; is a graphical version of &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039;, which is a tool used to setup disk partitioning. Note that &amp;#039;&amp;#039;fdisk&amp;#039;&amp;#039; or any other partitioning software only sets up the MBR, and does not actually format the drive even though you can set a partition type identifier such as &amp;#039;&amp;#039;&amp;#039;fat32&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Linux&amp;#039;&amp;#039;&amp;#039;, etc. Also notice how we tell &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039; what drive we want to edit the partition on by appending the drive device &amp;quot;file&amp;quot; to the end of the command.&lt;br /&gt;
# Because our new drives contain no existing partitions we are asked what type of partition table to create. Choose to create a &amp;#039;&amp;#039;dos&amp;#039;&amp;#039; (aka &amp;#039;&amp;#039;MBR&amp;#039;&amp;#039;) style partition table. Although this is an older style partition table it is well supported by many operating systems and BIOSes. The primary benefit of the newer &amp;#039;&amp;#039;GPT&amp;#039;&amp;#039; style tables is their ability to work with very large drives.&lt;br /&gt;
# Once in &amp;#039;&amp;#039;cfdisk&amp;#039;&amp;#039;, Select the &amp;#039;&amp;#039;New&amp;#039;&amp;#039; option. Now select &amp;#039;&amp;#039;primary&amp;#039;&amp;#039; as we are making a primary MBR partition, then set the size close to &amp;#039;&amp;#039;5GB&amp;#039;&amp;#039; (it doesn&amp;#039;t need to be exact). &lt;br /&gt;
# Using the arrow keys to go down to the remaining &amp;#039;&amp;#039;Free Space&amp;#039;&amp;#039; on the drive, and press enter to again select &amp;#039;&amp;#039;New&amp;#039;&amp;#039;. Create another &amp;#039;&amp;#039;primary&amp;#039;&amp;#039; partition, and set the size to about &amp;#039;&amp;#039;2GB&amp;#039;&amp;#039;.&lt;br /&gt;
# At this point we should have two partitions, one named &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039; with a size of about 5GB (the program will round down to the closest boundary), and &amp;#039;&amp;#039;sdb2&amp;#039;&amp;#039; which takes up the next 2GB or so of the drive. Use the arrow keys to select the &amp;#039;&amp;#039;Write&amp;#039;&amp;#039; option, and press &amp;#039;&amp;#039;enter&amp;#039;&amp;#039;. You will be warned that this will write the table to the disk. enter &amp;#039;&amp;#039;yes&amp;#039;&amp;#039;, and press &amp;#039;&amp;#039;enter&amp;#039;&amp;#039; again to confirm.&lt;br /&gt;
# If, on the bottom of the screen, you see &amp;quot;The partition table has been altered&amp;quot;, you have successfully written the MBR to the drive. Now you can navigate to &amp;#039;&amp;#039;Quit&amp;#039;&amp;#039; to exit the program.&lt;br /&gt;
# From the command line run &amp;#039;&amp;#039;&amp;#039;ls -al /dev/sd*&amp;#039;&amp;#039;&amp;#039;. Notice how you can now see both of the new partitions, &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;sdb2&amp;#039;&amp;#039; in the listing. This means the partition device &amp;quot;files&amp;quot; have been created and you are ready to format the partitions with a filesystem.&lt;br /&gt;
# The first partition will be formatted as &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, and the second partition will be formatted as &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039;. Both filesystems (as well as many others) are commonly used on Linux systems. For more information on the differences and similarities between &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, refer to your book or Google.&lt;br /&gt;
# To create the &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039; partition, we will use the &amp;#039;&amp;#039;mkfs.ext4&amp;#039;&amp;#039; command. So as root, run the command &amp;#039;&amp;#039;mkfs.ext4 /dev/sdb1&amp;#039;&amp;#039;. This will partition the drive as &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039; with no label. If you would like to label the partition, look into the options of &amp;#039;&amp;#039;mkfs.ext4&amp;#039;&amp;#039; using &amp;#039;&amp;#039;man mkfs.ext4&amp;#039;&amp;#039;.&lt;br /&gt;
# Before formatting the other partition as &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039; we need to install some tools. The required tools are part of the &amp;#039;&amp;#039;btrfs-tools&amp;#039;&amp;#039; software package so install that package at this time.&lt;br /&gt;
#* Note if you have issues with installing packages, check your firewall rules you created in a previous lab and ensure your Internet access is working properly from the VM.&lt;br /&gt;
# To format the second partition as a &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039; filesystem partition we will run &amp;#039;&amp;#039;mkfs.btrfs /dev/sdb2&amp;#039;&amp;#039;. Just like before, we need to tell the &amp;#039;&amp;#039;mkfs.btrfs&amp;#039;&amp;#039; package what partition to format by including that on the command line.&lt;br /&gt;
# There are many other options that can be set for specific filesystems during the formatting process. For example, many newer large drives use 4096 byte &amp;quot;Advanced Format&amp;quot; sectors instead of the traditional 512 byte hard drive sectors. Using these disks most efficiently requires adjusting the sector size during the format process to match the physical sector size on the disk. Other features and filesystems include the ability to take snapshots of the drive for backups. The full details of all the options, settings, and filesystems available in Linux is beyond the scope of this course. Suffice it to say that Linux systems with a need for high speed I/O from disks or other specialized features are finely tuned.&lt;br /&gt;
# As a Linux system administrator at a minimum you should be familiar with the basic formatting of drives in the most common &amp;#039;&amp;#039;ext3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;ext4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;fat&amp;#039;&amp;#039; (32) filesystems. Even though the FAT filesystem is not native to Linux (it doesn&amp;#039;t have important features like user and group ownership) it is important as it is a cross platform filesystem commonly used to share files on thumb drives, external hard drives, or dual boot systems with MacOS or Windows users.&lt;br /&gt;
# Once your two partitions are formatted they need to be &amp;#039;&amp;#039;mounted&amp;#039;&amp;#039; to the filesystem structure so that we can begin using them for file storage.&lt;br /&gt;
&lt;br /&gt;
== Mounting Partitions == &lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; There are two main ways to mount disks in Linux. One is done manually, and the other is to setup mounting at boot. Manual mounting is typically done for either temporary access to drives such as CD/DVDs, thumb drives, external hard drives, or to access a newly created partition before rebooting the system. Automatic mounting is done during the boot process so that you have immediate access to he drive once the system is booted.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; To start, we will learn how to manually mount a partition. change into the &amp;#039;&amp;#039;/mnt&amp;#039;&amp;#039; directory and then create a new directory named &amp;#039;&amp;#039;part1&amp;#039;&amp;#039;. This will become the location where we will mount our &amp;#039;&amp;#039;/dev/sdb1&amp;#039;&amp;#039; partition and be able to save files to it.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Enter the &amp;#039;&amp;#039;part1&amp;#039;&amp;#039; directory and create a new empty file (remember the &amp;#039;&amp;#039;&amp;#039;touch&amp;#039;&amp;#039;&amp;#039; command?) named &amp;#039;&amp;#039;unmounted&amp;#039;&amp;#039;. Because we have not yet mounted &amp;#039;&amp;#039;/dev/sdb1&amp;#039;&amp;#039; this file will be stored on our existing partition (&amp;#039;&amp;#039;/dev/sda1&amp;#039;&amp;#039;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Go back to the &amp;#039;&amp;#039;/mnt&amp;#039;&amp;#039; parent directory. Run the &amp;#039;&amp;#039;mount /dev/sdb1 /mnt/part1&amp;#039;&amp;#039; command as root. This command will mount, or attach, &amp;#039;&amp;#039;/dev/sdb1&amp;#039;&amp;#039; to the filesystem location &amp;#039;&amp;#039;/mnt/part1&amp;#039;&amp;#039; and everything stored in that &amp;quot;directory&amp;quot; from this point on will actually be saved onto the first partition of the second SATA drive.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Go back into the &amp;#039;&amp;#039;part1&amp;#039;&amp;#039; directory and try listing the files. Notice how the &amp;#039;&amp;#039;unmounted &amp;#039;&amp;#039;file you made appears to no longer exist. This is because the &amp;#039;&amp;#039;part1&amp;#039;&amp;#039; &amp;quot;directory is now being used as the mount point for the first partition on &amp;#039;&amp;#039;sdb&amp;#039;&amp;#039; and we haven&amp;#039;t yet saved any files onto &amp;#039;&amp;#039;sdb1&amp;#039;&amp;#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; You can see a list of all storage devices currently mounted on the system by simply running the command &amp;#039;&amp;#039;&amp;#039;mount&amp;#039;&amp;#039;&amp;#039; without any options. Try doing this and verify that the newly mounted partition is showing in the list.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Change back to the &amp;#039;&amp;#039;/mnt&amp;#039;&amp;#039; directory and unmount the partition by running the command &amp;#039;&amp;#039;umount /mnt/part1&amp;#039;&amp;#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Again list the contents of the &amp;#039;&amp;#039;part1&amp;#039;&amp;#039; directory. Notice how the &amp;#039;&amp;#039;unmounted&amp;#039;&amp;#039; file is back. The file didn&amp;#039;t every really go away but it was not accessible while the other partition was mounted on the &amp;#039;&amp;#039;part1&amp;#039;&amp;#039; directory. When a drive is mounted on a directory, it overlays on top of any files in the directory, but it does not delete or touch the files on the original disk.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Make a directory named &amp;#039;&amp;#039;btrfs&amp;#039;&amp;#039; in &amp;#039;&amp;#039;/mnt&amp;#039;&amp;#039;. Once created, using the file editor of your choice, open the &amp;#039;&amp;#039;/etc/fstab&amp;#039;&amp;#039; file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; The &amp;#039;&amp;#039;fstab&amp;#039;&amp;#039; file is used to tell a Linux system what drives and partitions is should mount at boot, as well as any mount options and where to mount the partitions. On the bottom of the file, add the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;/dev/sdb1       /mnt/part1      ext4    defaults        0       0&lt;br /&gt;
/dev/sdb2       /mnt/btrfs      btrfs   defaults        0       0&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Adding these lines will indicate both partitions should be mounted at boot to the directories we created. To mount the partitions without rebooting or entering individual mount commands, we can just run &amp;#039;&amp;#039;&amp;#039;mount -a&amp;#039;&amp;#039;&amp;#039; which will load and mount all partitions in the &amp;#039;&amp;#039;fstab&amp;#039;&amp;#039; file. Run the &amp;#039;&amp;#039;&amp;#039;mount -a&amp;#039;&amp;#039;&amp;#039; command now and verify both partitions are mounted.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Disk and File Usage ==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Another way to verify the partitions which are mounted and to see how much disk space is used on each is to use the &amp;#039;&amp;#039;df&amp;#039;&amp;#039; command. When you run &amp;#039;&amp;#039;df&amp;#039;&amp;#039;, you should see something similar to this at the bottom of the output:&lt;br /&gt;
&amp;lt;pre&amp;gt;/dev/sdb1                 14712416  167576  13797488   2% /mnt/part1&lt;br /&gt;
/dev/sdb2                 26995912     120  24870016   1% /mnt/btrfs&amp;lt;/pre&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This indicates that the two partitions are mounted properly to the folders we created earlier. &amp;#039;&amp;#039;df&amp;#039;&amp;#039; is a powerful command as not only will it show you what is mounted where, but it also shows you how much disk space is used and how much space is left.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; The &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; command doesn&amp;#039;t give the most easily readable disk or usage sizes by default. Try adding the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; option to the command like &amp;#039;&amp;#039;&amp;#039;df -h&amp;#039;&amp;#039;&amp;#039; to change the output to a &amp;quot;human readable&amp;quot; format and see what it looks like.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Now, &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;/mnt/part1&amp;#039;&amp;#039; so you are on the ext4 partition you created. Then as root, run the command &amp;#039;&amp;#039;&amp;#039;cp -r /var/log ./&amp;#039;&amp;#039;&amp;#039;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; &amp;#039;&amp;#039;&amp;#039;cd&amp;#039;&amp;#039;&amp;#039; into the &amp;#039;&amp;#039;log&amp;#039;&amp;#039; folder, and run &amp;#039;&amp;#039;&amp;#039;du -h&amp;#039;&amp;#039;&amp;#039;. &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; is a command that allows you to view file usage in a tree format. Just like with &amp;#039;&amp;#039;&amp;#039;df&amp;#039;&amp;#039;&amp;#039; the &amp;#039;&amp;#039;-h&amp;#039;&amp;#039; flag tells &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; to output the usage in a &amp;quot;human readable&amp;quot; format, while the &amp;#039;&amp;#039;-a&amp;#039;&amp;#039; flag tells it to show you the results for all files, and not just for folders.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Read the &amp;#039;&amp;#039;&amp;#039;man du&amp;#039;&amp;#039;&amp;#039; page and play around with using the &amp;#039;&amp;#039;&amp;#039;du&amp;#039;&amp;#039;&amp;#039; command across the file system. How much data is the /etc/ folder taking up on your Linux system? What directories are the biggest?&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>MikeTieden</name></author>
	</entry>
</feed>