Managing files
Now that you have an understanding of how to navigate the filesystem, it's time to take a look at some basic file management. After all, what good is accessing a terminal if you don't know how to create, delete, move, and rename files and directories? Once you learn the basics of navigating the filesystem, the rest will be easy. File management in the Linux Shell is very logical but also very important to learn. Take some time to go through the following examples to manage some files on your system.
First, let's take a look at creating a file. There is more than one way to do this, but the following command line accomplishes the goal very easily:
touch myfile
With the touch
command, we created a new file named myfile
. The touch
command will create a file in your working directory. Thus, if your working directory was your home directory, you'll now have a file called myfile
in that directory.
However, the file that it created isn't very useful, is it? In fact, the file is completely...