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

Creating, copying, moving, renaming, and removing files

This section sounds like a mouthful. Not to worry; it covers the techniques for creating and removing files. It also covers the methods for copying and renaming files.

There are various files that we use on a daily basis. We can do an ls on the /home/philip/Documents/NewTest directory, as follows:

philip@localhost Documents]$ cd NewTest/[philip@localhost NewTest]$ ll -atotal 8drwxrwxr-x. 2 philip philip 4096 Aug  6 12:04 .drwxr-xr-x. 3 philip philip 4096 Aug  6 13:45 ..[philip@localhost NewTest]$

Currently, they aren't any files inside of this directory. In Linux, we can create a file from the shell; we can use the touch command to accomplish this:

[philip@localhost NewTest]$ touch OurFile ...

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