O'Reilly logo

CompTIA Linux+ Certification Guide by Philip Inshanally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Viewing and moving files and directories in the CLI

First, you will need to be familiar with working in the CLI. Throughout the previous chapters, we interacted with the shell. Now, we want to become efficient in the CLI. When we first open a Terminal, we are placed into the user's home directory, as follows:

[philip@localhost ~]$

In the preceding output, we're being placed into the home directory of the user philip. This can be confirmed by issuing the print working directory (pwd) command, as follows:

[philip@localhost ~]$ pwd/home/philip[philip@localhost ~]$

In the preceding output, we've confirmed that we are indeed in the /home/philip directory. But, it gets even more interesting. There are various directories inside of /home/philip ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required