Linux Commands for Beginner-Level Users

Rakan Khaled
2 min readJul 18, 2024

I’m bringing you the crème de la crème, keep reading ;)

Here are the top 10 advanced Linux commands for beginner-level users, in my personal opinion, each one of us should know these commands and be comfortable with using them.ㅤ

  1. ls
  • Description: Lists directory contents.
  • Usage: ls [options] [directory]
  • Example: ls -la /home/user

2. cd

  • Description: Changes the current directory.
  • Usage: cd [directory]
  • Example: cd /home/user/Documents

3. pwd

  • Description: Prints the name of the current working directory.
  • Usage: pwd
  • Example: pwd

4. cp

  • Description: Copies files and directories.
  • Usage: cp [options] source destination
  • Example: cp file.txt /home/user/Documents

5. mv

  • Description: Moves or renames files and directories.
  • Usage: mv [options] source destination
  • Example: mv oldname.txt newname.txt

6. rm

  • Description: Removes files or directories.
  • Usage: rm [options] file
  • Example: rm file.txt
  • Caution: Be careful using rm with the r (recursive) option as it can delete directories and their contents.

7. mkdir

  • Description: Creates directories.
  • Usage: mkdir [options] directory
  • Example: mkdir new_directory

8. rmdir

  • Description: Removes empty directories.
  • Usage: rmdir [options] directory
  • Example: rmdir empty_directory

9. touch

  • Description: Changes file timestamps or creates an empty file.
  • Usage: touch [options] file
  • Example: touch newfile.txt

10. man

  • Description: Displays the manual pages for commands.
  • Usage: man command
  • Example: man ls

Here are three ways you can help me out:

1) Drop me a follow → Nuggets Of Happiness

2) Leave an appreciation and a comment if you enjoyed

3) Receive an e-mail every time I post on Medium → Click Here

Until next time, take care!

Rakan.

--

--

Rakan Khaled
Rakan Khaled

No responses yet