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

Arch Linux Cheat Sheet

Uploaded by

kesaandi0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
442 views

Arch Linux Cheat Sheet

Uploaded by

kesaandi0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Arch Linux

Cheat Sheet

System Management Package Management


Install, remove, upgrade and manage
systemctl Manage system services pacman
packages
AUR helper used to install packages from
journalctl Query and view system logs yay
the Arch User Repository
Install and manage applications in flatpak
hostnamectl Set or view the hostname of the system flatpak
format
Install and manage applications in snap
timedatectl Set or view the system time and time zone snap
format
hwclock Display or set the hardware clock makepkg Create and manage Arch Linux packages
shutdown Shut down or reboot the system
reboot Reboot the system File Management
lsblk Display information about block devices ls Display list of files and directories
Display information about the system's
dmidecode cd Change the current working directory
hardware components
Display detailed information about the
hwinfo rm Remove files and directories
system's hardware components
Display detailed information about the
lshw cp Copy files and directories
system's hardware components
lspcmcia Display information about PCMCIA devices mv Move files and directories
Display information about all devices on
lsdev nano Simple text editor
the system
Display information about loaded kernel
lsmod vi A more advanced text editor
modules
modprobe Add or remove kernel modules chmod Change file permissions
dmesg Displays bootup messages chown Change file ownerships
systemd- Analyze and display system boot-up
cat Concatenate and display files
analyze performance
systemd-
Create and manage containers less Show files one page at a time
nspawn
docker Create and manage containers head By default display first ten lines of a file
Alternative to docker that manages
podman tail Display last lines of a file
containers and images
Counts number of lines, words and
sync Flush file system buffers to disk wc
characters in a file
uptime Display system uptime and load averages sort Sort lines of text
Display information about system memory
free uniq Remove duplicate lines of text
usage
chroot Change the root directory of a process cut Extract columns of text from a file
cron Schedule periodic tasks paste Merge lines of text from different files
at Schedule one-time tasks

Prepared By: Md Zahidul Islam Laku Copyright ©2023 www.linuxsimply.com| All rights reserved.
Arch Linux
Cheat Sheet

System Management File Management


crontab Manage cron jobs for a user sed Perform text transformations on a file
monitoring and controlling the SMART
smartctl awk Manipulate and analyze text data
attributes of hard drives and SSDs
Display a list of previously executed
history diff Compare two files and directories
commands
ltrace Trace library calls patch Apply changes to a file or directory
Trace and analyze system calls and signals
strace alias Create custom command shortcut
made by a process
valgrind Debug and profile programs which Display the location of a command
Quickly find files and directories on the
gdb Debug programs locate
system
pidof Find the process ID of a running program updatedb Update the locate database
Find the process ID of a running program List open files and their associated
pgrep lsof
based on its name or other criteria processes
Send a signal to a running process based on Display information about running
pkill ps
its name or other criteria processes
kill Send a signal to a process
Network Management renice Change the priority of a process
ip Display and manage network nice Start a process with specific priority
Copy and convert data between files and
ping Tests connectivity of a host dd
devices
Display information about network
netstat connections, routing tables, and network fdisk Create and manage disk partitions
interfaces
wget Download files from the internet mkfs Create a file system on a disk partition
curl Transfer data from or to a server mount Mount file systems
Establish a secure shell connection to a
ssh umount Unmount file systems
remote server
scp Securely copy files between servers fsck Check and repair file systems
Synchronize files and directories between
rsync blkid Display information about block devices
servers
tcpdump Capture and analyze network traffic hdparm Configure hard disk device parameters
Perform network exploration and security
nmap lspci Display information about PCI devices
auditing
arp Display and modify the ARP table lsusb Display information about USB devices
Display information about network Displays directory structure in a tree
ss tree
connections format
Display and configure wireless network
iwconfig ln Create links between files and directories
interfaces
ifconfig Configure network interfaces mkdir Create directories
route View and modify routing table rmdir Remove empty directories

Prepared By: Md Zahidul Islam Laku Copyright ©2023 www.linuxsimply.com| All rights reserved.
Arch Linux
Cheat Sheet

Network Management File Management


Update the modification and access time of
traceroute Traces the route of a host touch
a file or create a new empty file
dig Retrieve DNS records of a domain file Determine the type of file
Obtains information about a domain name Display the contents of a file in
host hexdump
or IP address hexadecimal format
iptables Configure Linux firewall md5sum Calculate the MD5 checksum of a file
ipset Manage ip sets cpio Create and extract cpio archives
ssh-keygen Generate and manage SSH keys sftp Transfer files securely over SSH
ssh-copy-id Copy SSH keys to a remote server sha256su Calculate the SHA-256 checksum of a file
Terminal multiplexer and session manager
byobu find Search files and directories
that includes additional features
cifs-utils Mount and manage CIFS df View Disk space usage
Continuously monitors network
mtr du Estimates file space usage
connections and their quality
Text-based interface for Git that provides a
tig visual representation of Git branches, grep Search for text within files
commit history, and changes
Display real-time system and hardware
nmon statistics, including CPU usage, disk I/O, ack Seach and process text files
and network traffic
Packet crafting and testing tool that can
hping3 ripgrep Search and process text files
send various types of network packets
Discover hosts and network devices by
Display real-time information about system
arp-scan sending ARP packets, and display their top
resource usage
MAC and IP addresses
A graphical partition editor that allows to An interactive process viewer and system
gparted create, resize, move, and copy disk htop monitor, similar to top but with more
partitions features and customizability
Run multiple shell sessions or programs
Mount a remote file system over SSH
sshfs screen within a single terminal window or across
protocol
multiple terminals
A network load blancer and cluster Identify which processes are using a
slurm fuser
management tool specific file or directory
Parse, manipulate and analyze JSON data Display the absolute path of a file or
jshon realpath
in shell scripts directory
Open files or URLs with the default
xdg-open truncate Shrink or extend the size of a file
application configured in the system
A file manager and directory browser that
ranger supports various features like previews, stat Display file or file system status
bookmarks, and plugin integration
copy data from one file or block device to
ddrescue
another

Prepared By: Md Zahidul Islam Laku Copyright ©2023 www.linuxsimply.com| All rights reserved.
Arch Linux
Cheat Sheet

Network Management User and Group Management


Display real-time information about system
ytop tmux Manage multiple terminal sessions
resourses
Monitor network traffic and record and Monitor input/output usage by processes
vnstat iotop
display bandwidth usage of interfaces and storage devices
Display information about currently logged-
nc Establish and manage network connections w
in users
iftop Monitor network traffic in real-time last Display information about previous logins
System monitoring tool with a web
nethogs Shows bandwidth usage by process glances
interface
whois Query WHOIS databases
Display information about the system's
Miscellaneous uname
kernel and operating system version.
Download videos and audio from various
youtube-dl
sources
Fetch and display news articles from
newsboat Compression and Archiving
various sources
Convert documents between various
pandoc zip Create and manipulate ZIP archive files
markup and document formats
Plays audio files from a local or remote
mpd tar Archive and compress files
directory
Tunnels all network traffic through an SSH
sshuttle connection, and can bypass various unzip Extract files from ZIP archives
network restrictions and firewalls
Supports various image formats and can
Compress and decompress files using the
feh display them in a slideshow or as a bzip2
bzip2 algorithm
background wallpaper
Compress and decompress files using the
mutt A command-line email client gzip
gzip algorithm
command-line email client with a more Compress and decompress files using the
pine xz
traditional interface xz algorithm
Web browser with more advanced Manage digital certificates and perform
elinks openssl
features than Lynx encryption and decryption operations
lynx A text-based web browser ncdu Analyze disk usage in a directory tree
Extract human-readable strings from
strings 7z Extract files from 7z archives
binary files
Encrypt and decrypt files and messages Monitor the progress of data transfer
gpg pv
using public-key cryptography between two processes
Manage SQLite databases, and can create, Find and remove duplicate files in a
sqlite3 fdupes
modify, and query tables directory tree, and can compare files
Compress and decompress files and
p7zip directories in various archive formats,
including 7z, zip, tar, and gzip
qpdf Manipulate and transform PDF files

Prepared By: Md Zahidul Islam Laku Copyright ©2023 www.linuxsimply.com| All rights reserved.

You might also like