Linux

9 Articles
ICTKB_IMG

Removing/Deleting Files in Linux

The rm command is used to delete files and directories. It is important to keep in mind that deleted files and directories do not go into a “trash can” as with desktop-oriented operating systems. When a file is deleted with the rm...

ICTKB_IMG

Moving Files in Linux

The mv command is used to move a file from one location in the filesystem to another.mv SOURCE DESTINATION The mv command requires at least two arguments. The first argument is the source, a path to the file to be moved. The...

ICTKB_IMG

Copying Files in Linux

Creating copies of files can be useful for numerous reasons: cp [OPTIONS] SOURCE DESTINATION The cp command is used to copy files. Similar to the mv command, it requires at least two arguments: a source and a destination. For...

ICTKB_IMG

Viewing Files in Linux

There are a few Linux commands available to view the content of files. The cat command, which stands for “concatenate”, is often used to quickly view the contents of small files. The cat command will display the entire...

ICTKB_IMG

Changing File Ownership in Linux

Initially, the owner of a file is the user who creates it. The chown command is used to change the ownership of files and directories. Changing the user owner requires administrative access. A regular user cannot use this command to change...

ICTKB_IMG

Changing File Permissions in Linux

The chmod command is used to change the permissions of a file or directory. Only the root user or the user who owns the file is able to change the permissions of a file. There are two techniques for changing permissions with...

ICTKB_IMG

File Permissions in Linux

Permissions determine the ways different users can interact with a file or directory. When listing a file with the ls -l command, the output includes permission information. For the example we will use a script...

ICTKB_IMG

Administrative Access in Linux

There are many Linux commands which deal with sensitive information like passwords, system hardware, or otherwise operate under other exceptional circumstances. Preventing regular users from executing these commands helps to protect the system....

ICTKB_IMG

Listing Files in Linux

The ls command is used to list the contents of a directory. You’ve already seen it used a few times before in examples, but this page will help ensure you are comfortable with its use. ls [OPTIONS] [FILE] By default, when...

Our site uses cookies. By using this site, you agree to the Privacy Policy and Terms of Use.