Arch Linux Cheat Sheet – 100+ Commands with PDF

If you are a new user of Arch Linux, then you probably know that Arch Linux doesn’t come with a large number of pre-installed tools, but you can install additional tools and packages with commands. That’s why learning Arch Linux commands will help you to become a professional Arch user.

In this article, I will share a complete Arch Linux commands cheat sheet with over 100+ commands for beginner to advanced levels. I will explain all the Arch Linux commands in a very simple way that even a new user can easily understand.

Arch Linux commands cheat sheet from basic to advanced
Arch Linux Commands Cheat Sheet

What is Arch Linux?

Arch Linux is a free and open-source Linux-based computer operating system that is lightweight and super fast. It was first on March 11, 2002, and the first version was Arch Linux 0.1, which was developed by Judd Vinet.

Arch Linux doesn’t come with many pre-installed tools so that you can only install what you need, which is good for system performance and customization.

Now you know what Arch Linux is, so let’s see the Arch Linux commands list from basic to advanced.

Arch Linux Commands Cheat Sheet

Arch Linux cheat sheet
Arch Linux cheat sheet

Here’s a full list of 100+ arch Linux commands, grouped into simple sections. Each command includes a short usage description so you understand what it does.

Basic Arch Linux Commands

These are the basic Arch Linux commands that you should definitely need to know. You will use these commands every day to move around the system, create or delete files, and do the basic tasks:

  1. pwd : Shows your current folder location.
  2. ls : Lists files and folders present in current location.
  3. cd [folder_name] : Goes into a specific folder.
  4. cd .. : Moves you back to the previous folder.
  5. mkdir [folder_name] : Makes a new folder.
  6. touch [file_name.txt] : Makes a new file.
  7. rm [file_name.txt] : Deletes a file.
  8. rm -r [folder_name] : Deletes a folder and everything inside.
  9. clear : Cleans the terminal screen.
  10. exit : Closes the terminal.

File & Folder Management Commands

File and folder management commands are used to open, move, copy, delete, or find files in the system. Here is the list of Arch Linux file and folder management commands:

  1. mv file1 file2 : Renames or moves a file.
  2. cp file1 file2 : To create a copy of a file.
  3. cp -r folder1 folder2 : Copies a whole folder.
  4. cat file.txt : Shows what’s inside a file.
  5. nano file.txt : Opens a simple text editor.
  6. vi file.txt : Another text editor (a bit advanced).
  7. find / -name file.txt : Searches for a specific file on system.
  8. locate filename : Quickly finds files by name.
  9. file filename : Tells what type of file it is.
  10. stat file.txt : Gives file details like size and modified date.

System Information Commands

System information commands in Arch Linux is used to check system infos and to monitor the system. You can check your system name, Linux version info, uptime, storage usage, RAM usage, and more:

  1. uname -a : Shows full system details.
  2. lsb_release -a : Displays your linux version informations.
  3. hostname : Shows your system’s name.
  4. whoami : Displays your name on the system.
  5. id : Displays your I’d informations.
  6. uptime : Check how long the system is on.
  7. date : Shows current date and time.
  8. cal : Shows a calendar of current month.
  9. free -h : Displays system RAM usage.
  10. df -h : Displays disk space usage.
See also  Kali Linux Commands List for Beginners – 100+ Commands with PDF Download

Networking Commands

Networking commands are very important in the cybersecurity field, which are used to check IP address information, find DNS info, download any website page, gather domain information, and much more. Here are some basic Arch Linux networking commands:

  1. ip a : Displays your network IP informations.
  2. ping google.com : Checks internet connection of a website.
  3. netstat -tuln : Shows open ports.
  4. traceroute google.com : Shows path to website.
  5. nslookup google.com : Finds DNS informations of a website.
  6. dig google.com : Finds advanced DNS informations of a website.
  7. whois domain.com : Displays domain informations.
  8. curl [website.com] : Downloads website page.
  9. wget [url] : Downloads a file from the web.
  10. nmtui : Opens network manager (text-based).

User Management Commands

If your computer is used by many people, then these commands will help you to manage users, add users, and remove users.

  1. adduser name : To adds a new user.
  2. passwd name : Changes password of a user.
  3. deluser name : Removes a user from the system.
  4. usermod -aG group name : Adds a specific user to a group.
  5. su name : To switch your current user to another user.
  6. sudo command : Runs a command as root/admin.
  7. groups : Displays all the groups on the system.
  8. id username : Shows ID information of a user.
  9. who : Displays system logged-in users.
  10. last : Shows login history of users.

Pacman Arch Linux Commands

Pacman is a special package manager for Arch Linux that is used to install, uninstall, update, and upgrade packages and to do package management-like tasks.

  1. sudo pacman -Syu : Updates all packages.
  2. sudo pacman -S [package_name] : To installs a package.
  3. sudo pacman -R [package_name] : Removes/delete a package.
  4. sudo pacman -Rs [package_name] : Removes package with its dependencies.
  5. sudo pacman -Ss name : Searches for a package.
  6. sudo pacman -Qi [package_name] : Shows detail information of a packege.
  7. sudo pacman -Qdt : Lists orphaned packages.
  8. sudo pacman -Rns $(pacman -Qtdq) : To removes/delete unused packages.
  9. sudo pacman -Q : Displays a lists of all installed packages.
  10. sudo pacman -U package.pkg.tar.zst : To install a package from a local file.

Process Management Commands

Process management commands are used to manage system processes. You can see what the processes running in your system background are, you can check CPU and memory usage, and you can stop running processes.

  1. ps : Shows all currently running processes.
  2. ps aux : Shows detailed list of running processes.
  3. top : Check live CPU and memory usage.
  4. htop : Better version of top (needs install).
  5. kill PID : Use process ID to kill a process.
  6. killall [name] : Stops all programs by name.
  7. nice -n 10 command : Runs command with low priority.
  8. jobs : Shows background jobs.
  9. bg : Resumes job in background.
  10. fg : Brings background job to front.

Permissions & Ownership commands

If you have many users, then these commands help you lock or unlock files. You can decide who can open a file, who can change it, or who can see it:

  1. chmod 777 file : Gives a file all permissions.
  2. chmod +x file : Makes file executable.
  3. chown user file : Changes owner.
  4. chgrp group file : Changes group owner.
  5. umask : Shows default permissions.

Compression & Archiving commands

Use these commands to create, open, and compress tar and zip files:

  1. tar -cvf archive.tar folder/ : Creates tar file.
  2. tar -xvf archive.tar : Opens tar file.
  3. zip file.zip folder/ : Makes zip file.
  4. unzip file.zip : Opens a zip.
  5. gzip file.txt : Compresses file.
  6. gunzip file.txt.gz : Opens compressed file.
  7. xz file.txt : High-compression.
  8. unxz file.txt.xz : Decompresses it.
See also  How to Install and Use Python in Termux

Ethical Hacking & Cybersecurity Tools Commands

Ethical hacking and security tools are used to test the security of a network of web applications, analyze network traffic, find system vulnerabilities, and more. Here are some Arch Linux commands to install ethical hacking and cybersecurity tools.

  1. sudo pacman -S nmap : Install Nmap to scan networks and find open ports.
  2. sudo pacman -S wireshark-qt : Install Wireshark to capture and analyze network traffic.
  3. yay -S metasploit : Install Metasploit Framework for testing security and finding system vulnerabilities.
  4. yay -S sqlmap : Install SQLMap to test websites for SQL injection problems.
  5. yay -S aircrack-ng : Install Aircrack-ng to check Wi-Fi security and crack Wi-Fi passwords (for learning only).
  6. yay -S hydra : Install Hydra to test login pages by trying many passwords (brute force testing).
  7. sudo pacman -S john : Install John the Ripper to crack password files and test password strength.
  8. yay -S burpsuite : Install Burp Suite to find bugs and test security in websites and web apps.
  9. sudo pacman -S nikto : Install Nikto to scan web servers for weak points and outdated software.
  10. sudo pacman -S whois : Install Whois to get information about websites, like owner and registration details.

Fun & Extra Cool Commands

These are fun commands that make your terminal screen colorful or show funny animations. Like rainbow text, cows talking, or running a train in the terminal. These are for fun and to make your computer look cool:

  1. neofetch : Displays system informations in a cool way.
  2. figlet Hello : Create big ASCII text.
  3. lolcat : Rainbow colors for output.
  4. cowsay Hello : Cow says your message.
  5. watch date : Displays realtime date and time.
  6. yes Hello: Repeats a word forever.
  7. sl : Displays a train animation.
  8. fortune : Tells random jokes/quotes.
  9. cal : Shows a calendar.
  10. uptime : Shows system uptime.

Arch Linux commands in Table format

Arch Linux commands table
Arch Linux Commands Table

Below are the Arch Linux commands in a table format with simple explanations so that you can easily understand and use these commands as an advanced user.

🔹 Basic Arch Linux Commands

No.CommandWhat It Does (Simple Explanation)
1pwdShows where you are right now in your computer.
2lsLists files and folders present in current location.
3cd foldernameGo inside a folder.
4cd ..Moves you back to the previous folder.
5mkdir foldernameMakes a new folder.
6touch filename.txtMakes a new empty file.
7rm filename.txtDeletes a file.
8rm -r foldernameDeletes a folder and everything inside it.
9clearClears everything on the screen.
10exitCloses the terminal.

🔹 File and Folder Commands

No.CommandWhat It Does (Simple Explanation)
1mv file1 file2Renames or moves a file.
2cp file1 file2Makes a copy of a file.
3cp -r folder1 folder2Copies a folder and all files inside it.
4cat file.txtShows what is written inside a file.
5nano file.txtOpens the file so you can write or edit it.
6vi file.txtOpens file using the vi editor (another text editor).
7find / -name filenameSearches for a file everywhere in the system.
8locate filenameQuickly finds files with that name.
9file filenameTells what kind of file it is.
10stat file.txtShows info like size and date of file.

🔹 System Information Commands

No.CommandWhat It Does (Simple Explanation)
1uname -aShows system information.
2hostnameShows your computer name.
3whoamiTells your username.
4uptimeTells how long the system has been on.
5dateShows current date and time.
6calShows the calendar.
7free -hShows how much memory (RAM) is being used.
8df -hShows how much storage space is left.

🔹 Network and Internet Commands

No.CommandWhat It Does (Simple Explanation)
1ip aShows your IP address.
2ping google.comChecks if your internet is working.
3traceroute websiteShows how data travels to a website.
4nslookup websiteGets website’s IP address info.
5dig website.comAdvanced tool to check domain info.
6curl website.comDownloads a webpage content in terminal.
7wget linkDownloads file from a website.

🔹 User Management Commands

No.CommandWhat It Does (Simple Explanation)
1adduser usernameAdds a new user to the system.
2passwd usernameSets or changes password for a user.
3deluser usernameDeletes a user from the system.
4usermod -aG group usernameAdds a user to a group.
5groupsShows all groups of the current user.

🔹 Package Management Commands (pacman)

No.CommandWhat It Does (Simple Explanation)
1sudo pacman -SyuUpdates your system and software.
2sudo pacman -S packageInstalls a software/package.
3sudo pacman -R packageRemoves installed software.
4sudo pacman -Ss keywordSearches for a package.
5sudo pacman -Qi packageShows info about a package.
6sudo pacman -QdtShows unused packages.
7sudo pacman -ScClears the cache.

🔹 File Permissions and Ownership

No.CommandWhat It Does (Simple Explanation)
1chmod +x file.shMakes a file executable.
2chmod 777 fileGives full read/write/execute permissions.
3chown user fileChanges the file owner.
4chgrp group fileChanges group owner of the file.

🔹 Process Management

No.CommandWhat It Does (Simple Explanation)
1psShows running processes.
2topReal-time process viewer.
3htopA colorful and better version of top.
4kill PIDStops a program by its process ID.
5killall nameStops all programs with that name.

🔹 Ethical Hacking & Security Tools (Pacman Install)

No.CommandWhat It Does (Simple Explanation)
1sudo pacman -S nmapInstalls nmap to scan networks.
2sudo pacman -S wireshark-qtInstalls Wireshark to capture network traffic.
3sudo pacman -S johnInstalls John the Ripper, a password cracker.
4sudo pacman -S metasploitInstalls Metasploit for penetration testing.
5sudo pacman -S sqlmapInstalls SQLmap for testing SQL vulnerabilities.
6sudo pacman -S aircrack-ngInstalls Aircrack-ng for Wi-Fi testing.
7sudo pacman -S hydraInstalls Hydra for brute force password attacks.
8sudo pacman -S niktoInstalls Nikto to scan websites.

🔹 Arch Linux Cool Commands (Fun + Useful)

No.CommandWhat It Does (Simple Explanation)
1neofetchShows your system info in a stylish way with logo.
2figlet HelloPrints the word “Hello” in big letters using ASCII art.
3toilet HelloLike figlet but adds colors and fancy effects.
4cowsay HelloA cow appears and says “Hello” in a funny way.
5fortuneShows a random funny or wise quote.
6toilet -f mono12 -F gay HelloPrints colorful large text with extra styles.
7cmatrixShows falling green hacker-style text like in The Matrix movie.
8lolcat HelloConverts text to rainbow colour text.
9watch dateDisplays realtime date and time.
10slShows a train moving across your terminal (just for fun).
11asciiquariumShows an animated fish aquarium made with ASCII characters.
12htopA colorful and easy-to-use task manager in terminal.

⚙️ Note: Some of these cool tools may need to be installed using:

You can install all these cool tools with this one line command:

sudo pacman -S cmatrix neofetch figlet cowsay fortune sl htop
Arch Linux Cool Commands
Arch Linux Cool Commands

Download Arch Linux Commands PDF

Arch Linux commands PDF file is useful for you if you want to remember and practice commands regularly.

See also  How to Install Kali Linux on Android | Without Root | Latest Method | 100% Working

I have made a complete Arch Linux commands PDF file that has all the Arch Linux commands from this article.

Just click the download button below to download the Arch Linux commands PDF file:

This PDF file has over 100+ Arch Linux commands, from basic to advanced, that cover package management, system info, file handling, network tools, and even ethical hacking tools commands. All the commands are explained in a simple way and are ready to use anytime.

Conclusion

Arch Linux is a little bit complex but a powerful Linux-based operating system. You can use it for multiple purposes like ethical hacking, network analysis, cybersecurity research, finding system loopholes, and more.

In this article, I have shared over 100+ Arch Linux commands, from basic to advanced. Those commands will help you to move inside folders, install packages, manage files, check system info, use the internet, and even try some ethical hacking tools. I have also added a Arch Linux commands PDF file so that you can use these anytime.

SHARE THIS POST:

Leave a Reply

Your email address will not be published. Required fields are marked *