Manjaro – Arch Linux CLI Cheat Sheet

Below you will find an easy to use Manjaro CLI (command line interface) cheat sheet. Manjaro Linux is based on Arch Linux so this is an Arch Linux CLI cheat sheet as well. This list should contain most commands that you may use and are sorted by category. If you would like to see a command added or see an error please leave a comment.

Access Rights

sudo command # executes command as root
sudo -k # empties password cache
sudo visudo # edits /etc/sudoers
passwd # changes user password
chown owner:group # changes owner and group of file
chmod permissions file # changes the file permissions
      to set permissions in octal mode:
      4 (read) 2 (write) 1 (execute)
      example - 755 read-write-execute for owner
      amd read-execute for group and others
ls -lh [dir] # displays files and permissions [of directory]

[use man command for more information]

Files and Directories

cd dir # changes the working directory
cd .. # changes to the parent directory
ls # lists directory contents
ls -a # also lists the hidden files
cp target file # copies the file
cp -r target directory # copies the directory
mv target source # move/rename target source
rm -r dir # removes directory recursively
ln -s file link # removes directory recursively
mount -t type dev path # mounts file system
mount -o loop iso path # mounts iso image
/home/user # home directory of user
/etc # directory with global configurations

[use man command for more information]

Network

ifconfig # displays network information
iwconfig # displays wireless network information
iwlist scan # lists wireless access points
/etc/rd.d/network ifup interface
/etc/rd.d/network ifdown interface
/etc/rd.d/iptables {start|stop|restart}
ufw enable # enables the firewall [package Community: ufw]
ufw default allow/deny # allows/denies all incoming traffic
ufw status # displays firewall status and rules
ufw allow/deny port # allows/denies incoming traffic on the specified port
ufw allow/deny from ip # allows/denies incoming traffic from specified IP address

[use man command for more information]

System and Screen

uname -r # displays the kernel version
uname -a # displays all the kernel version
df # reports file system disk space usage
top # displays system tasks
procinfo # displays system information [package Core:procinfo-ng]
pstree # display a tree of processes
Ctrl+Alt+Fn # switches to tty n
Ctrl+Alt+F7 # switches to the X session
rc.d start daemon # starts a daemon
rc.d stop daemon # stops a daemon
rc.d restart daemon #restarts a daemon
shutdown -h now # shuts the sytem down
shutdown -r now # restarts the system

[use man command for more information]

Package Management

pacman -Si pckg # shows package information
pacman - S pckg # installs a package
pacman -Rns pckg # removes a package, its dependencies and configuration files
pacman -Syu # complete package upgrade
pacman -Ss name # searches for packages
pacman -Q pckg # diplays installed packages
pacman -Ql pckg # lists all package files
pacman -U pckg.tar.xz # installs a package from a file
pacman -Qm # lists manually installed packages
yaourt -S pckg # installs a package from AUR [package AUR: yaourt]
yaourt -Syua # complete package upgrade including packages from AUR

man pacman.conf/makepkg # learn more about pacman
* use pacman as root or with sudo
 use yaourt as non-privileged user

 

UBOS

  • OS Type: Linux
  • Based on: Arch
  • Origin: USA
  • Architecture: armhf, x86_64
  • Desktop: No Desktop
  • Category: Raspberry Pi, Server
  • Status: Active
Distribution UBOS – SwagArch GNU/Linux
Home Page http://ubos.net/
Mailing Lists https://groups.google.com/forum/#!forum/ubos-dev
Documentation http://ubos.net/docs/
Download Mirrors http://ubos.net/quickstart/
Bug Tracker https://github.com/uboslinux

Aliases – SwagArch Linux, SwagArch GNU/Linux

If you have any more information about SwagArch GNU/Linux please leave a comment or Contact Us.

TalkingArch

  • OS Type: Linux
  • Based on: Arch
  • Origin: New Zealand
  • Architecture: x86_64
  • Desktop: Cinnamon, Enlightenment, GNOME, KDE, LXDE, MATE, Xfce
  • Category: Assistive
  • Status: Active
Distribution TalkingArch
Home Page https://talkingarch.tk/
Alternative User Forums http://bbs.archlinux.org/ •
Download Mirrors https://talkingarch.tk/download.php •
Bug Tracker https://notabug.org/talkingarch/talkingarch
Related Websites ArchLinux.org

Aliases – Talking Arch, TalkingArch Linux

If you have any more information about TalkingArch please leave a comment or Contact Us.

SwagArch GNU/Linux

  • OS Type: Linux
  • Based on: Arch
  • Origin: Germany
  • Architecture: x86_64
  • Desktop: Xfce
  • Category: Desktop, Live Medium
  • Status: Active
Distribution SwagArch GNU/Linux
Home Page https://swagarch.gitlab.io/
Mailing Lists https://swagarch.gitlab.io/#mastodon
Download Mirrors https://swagarch.gitlab.io/#download
Bug Tracker https://gitlab.com/SwagArch/swagarch-build/issues
Related Websites Arch Linux Wiki

Aliases – SwagArch Linux

If you have any more information about SwagArch GNU/Linux please leave a comment or Contact Us.

Parabola GNU/Linux-libre

  • OS Type: Linux
  • Based on: Arch
  • Origin: Chile
  • Architecture: armv7, i686, x86_64
  • Desktop: Blackbox, Fluxbox, GNOME, IceWM, KDE, LXDE, MATE, Openbox, WMaker, Xfce
  • Category: Desktop, Free Software, Server
  • Status: Active
Distribution Parabola GNU/Linux-libre
Home Page https://parabola.nu/
Mailing Lists https://lists.parabola.nu//mailman/listinfo/
Documentation https://wiki.parabola.nu/
Download Mirrors https://parabola.nu/download/
Bug Tracker https://labs.parabola.nu/

Aliases – Parabola, Parabola Linux

If you have any more information about Parabola GNU/Linux-libre please leave a comment or Contact Us.

Obarun

  • OS Type: Linux
  • Based on: Arch
  • Origin: Switzerland
  • Architecture: x86_64
  • Desktop: JWM
  • Category: Desktop, Live Medium
  • Status: Active
Distribution Obarun
Home Page https://web.obarun.org/
User Forums https://forum.obarun.org/
Documentation https://wiki.obarun.org/
Screenshots https://web.obarun.org/index.php?id=46
Download Mirrors https://web.obarun.org/index.php?id=16 •
Bug Tracker https://github.com/Obarun

Aliases – Obarun Linux

If you have any more information about Obarun please leave a comment or Contact Us.

Namib GNU/Linux

  • OS Type: Linux
  • Based on: Arch
  • Origin: Canada
  • Architecture: x86_64
  • Desktop: Budgie, Cinnamon, GNOME, KDE Plasma, MATE, Xfce
  • Category: Desktop, Live Medium
  • Status: Active
Distribution Namib GNU/Linux
Home Page https://www.namiblinux.org/
User Forums https://forum.namiblinux.org/categories/
Documentation https://wiki.namiblinux.org/
Download Mirrors https://www.namiblinux.org/download/
Bug Tracker https://forum.namiblinux.org/category/23/bug-report

Aliases – Namib, Namib Linux

If you have any more information about Namib GNU/Linux please leave a comment or Contact Us.

MorpheusArch Linux

  • OS Type: Linux
  • Based on: Arch
  • Origin: United Kingdom
  • Architecture: x86_64
  • Desktop: LXQt
  • Category: Data Rescue, Live Medium
  • Status: Active
Distribution MorpheusArch Linux
Home Page http://morpheusarchlinux.com/
Download Mirrors https://sourceforge.net/projects/morpheusarch-lxqt/files/ISO/

Aliases – Morpheus Arch, Morpheus Arch Linux

If you have any more information about MorpheusArch Linux please leave a comment or Contact Us.

Manjaro Linux

  • OS Type: Linux
  • Based on: Arch
  • Origin: Austria, Germany, France
  • Architecture: x86_64
  • Desktop: Awesome, bspwm, Budgie, Cinnamon, Deepin, GNOME, i3, KDE Plasma, LXQt, MATE, Openbox, Xfce
  • Category: Desktop, Live Medium
  • Status: Active
Distribution Manjaro Linux
Home Page https://manjaro.org/
Mailing Lists https://lists.manjaro.org/
User Forums https://forum.manjaro.org/
Documentation https://wiki.manjaro.org/
Download Mirrors https://manjaro.org/download/
Bug Tracker https://manjaro.org/feedback/
Related Websites Manjaro Brazil • Manjaro China • Manjaro Czech Republic • Manjaro France • Manjaro Germany • Manjaro Italy • Manjaro Netherlands • Manjaro Poland • Manjaro Russia • Manjaro Spain • Manjaro Turkey

Aliases – Manjaro

If you have any more information about Manjaro Linux please leave a comment or Contact Us.

LinHES

  • OS Type: Linux
  • Based on: Arch
  • Origin: USA
  • Architecture: x86_64
  • Desktop: Enlightenment, WMaker
  • Category: Live Medium, MythTV
  • Status: Active
Distribution LinHES (formerly KnoppMyth)
Home Page http://www.linhes.org/
Mailing Lists http://lists.linhes.org/
User Forums http://forum.linhes.org/
Documentation http://www.linhes.org/projects/linhes/wiki/Guides
Screenshots http://www.linhes.org/projects/linhes/wiki/Screenshots
Download Mirrors http://www.linhes.org/projects/linhes/wiki/Downloads
Bug Tracker http://linhes.org/projects/linhes/issues

Aliases – LinHES Linux, KnoppMyth, KnoppMyth Linux