0% found this document useful (0 votes)
10 views

Basic Linux Commands Expanded

Linux commands in a small overview
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Basic Linux Commands Expanded

Linux commands in a small overview
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Basic Linux Commands (Expanded)

The Linux command line is a powerful tool that allows users to interact with the system efficiently.

Here are some essential commands:

- ls: Lists the contents of the current directory, providing an overview of files and directories.

- cd: Changes the current directory. For example, 'cd /home/user' will take you to the user directory.

- mkdir: Creates a new directory. You can specify the name of the directory, like 'mkdir new_folder'.

- rm: Removes files or directories. Be careful with this command as 'rm -rf' can delete directories

recursively without confirmation.

- cp: Copies files or directories. Use 'cp file1 file2' to make a copy of 'file1'.

- mv: Moves or renames files and directories. It works like 'mv old_name new_name' to rename or

move files.

- chmod: Changes file permissions. For instance, 'chmod 755 file' grants read, write, and execute

permissions to the owner.

- ps: Displays currently running processes, useful for system monitoring.

- grep: Searches for patterns within files. For example, 'grep error logfile.txt' searches for 'error' in

the file.

- sudo: Allows users to run commands with root privileges, crucial for administrative tasks.

Learning these commands is essential for mastering Linux and navigating efficiently.

You might also like