After you execute mount a partition or filesystem, execute the mount command without any arguments to view all the mounts. In the example below, after mounting the USB drive on a system, the output of mount looks like the below. As seen below, the USB device (i.e:/dev/sdb) is mounte...
Short for “disk free”, df is a command used to display the free disk space in Linux and other similar operating systems. It is also used to understand and ascertain the file systems that are mounted. Now, you may have noticed that I mentioned that this command can be used to define ...
In Linux, the term “drive” may not actually refer to a physical drive; a drive might be a special kind of file or a file system designed to look like a drive. For this reason, drives of any type are referred to as devices. When using the mount command, you mount a device to a...
Although many Linux distros have directories like/mnt/floppyor/floppycreated by default so you can mount your floppies there, you're not forced to use these directories. Using themountcommand, you can mount your devices or partitions into any existing directory you want! Usually your Linux distro...
Fret not! The Linux terminal has blessed us with a pretty nifty command-line-based tool called the 'linux file command'. It serves as your digital sherlock,
Chapter 5: View the File Contents in Linux In this chapter of the Terminal Basics series, you'll learn about viewing the contents of files in the Linux command line.You learned to create new files in the previous chapter of the Terminal Basics series. In this chapter, you'll learn to...
2. Build a Filesystem on a Specific Device In order to build the filesystem using mkfs command, the required arguments are device-filename and filesystem-type as shown below. The following example creates ext3 filesystem on /dev/sda6 partition. ...
4. Find Files in Linux Next, we shall look at some commands one can use tofind files on a Linux system, these include thelocate,find,what’s,andwhichcommands. Find Files Using locate Command Thelocatecommand is used to find the location of files and directories on a system by searching ...
For example, to quickly move up to the parent directory, the one above the one you are currently in, use the cd command like this: matthew@seymour:~$ cd .. To return to your home directory from anywhere in the Linux file system, use the cd command like this: matthew@seymour:~$ cd...
So that you can usetrashjust as you would any other command on your system, you must add your personal~/bindirectory to your PATH variable. Shell environment variables are loaded when the shell is launched, so they're set in the~/.bashrcconfiguration file. You can add this directory into...