translator
1,047
edits
Tag: Rollback |
(added another inxi for chroot) |
||
| Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<!-- Example titles --> | <!-- Example titles --> | ||
= Commands CheatSheet for Manjaro = | = Commands CheatSheet for Manjaro = | ||
<!-- TOC shows contents of the page --> | <!-- TOC shows contents of the page --> | ||
__TOC__ | __TOC__ | ||
=== Locating and Installing Packages === | === Locating and Installing Packages === | ||
==== Using Pamac CLI ==== | ==== Using Pamac CLI ==== | ||
Install packages {{UserCmd|command=pamac install [PackageName]}} | Install packages {{UserCmd|command=pamac install [PackageName]}} | ||
| Line 16: | Line 14: | ||
Check for updates {{UserCmd|command=pamac checkupdates}} | Check for updates {{UserCmd|command=pamac checkupdates}} | ||
==== Using native pacman ==== | ==== Using native pacman ==== | ||
Install packages {{UserCmd|command=sudo pacman -Syu [PackageName]}} | Install packages {{UserCmd|command=sudo pacman -Syu [PackageName]}} | ||
Uninstall packages {{UserCmd|command=sudo pacman -Rns [PackageName]}} | Uninstall packages {{UserCmd|command=sudo pacman -Rns [PackageName]}} | ||
| Line 23: | Line 21: | ||
Check for updates {{UserCmd|command=sudo pacman -Syu}} | Check for updates {{UserCmd|command=sudo pacman -Syu}} | ||
=== Maintenance === | === Maintenance === | ||
Generates a random mirrorlist for the users and sort them by their current access time. {{UserCmd|command=sudo pacman-mirrors --fasttrack}} | Generates a random mirrorlist for the users and sort them by their current access time. {{UserCmd|command=sudo pacman-mirrors --fasttrack}} | ||
Generate cache list {{UserCmd|command=du -sh ~/.cache/*}} | Generate cache list {{UserCmd|command=du -sh ~/.cache/*}} | ||
| Line 35: | Line 32: | ||
Remove all packages except the latest 3 versions {{UserCmd|command=pamac clean --keep 3}} | Remove all packages except the latest 3 versions {{UserCmd|command=pamac clean --keep 3}} | ||
=== AUR === | === AUR === | ||
Search for package {{UserCmd|command=pamac search -a [PackageName]}} | Search for package {{UserCmd|command=pamac search -a [PackageName]}} | ||
Build the package {{UserCmd|command=pamac build [PackageName]}} | Build the package {{UserCmd|command=pamac build [PackageName]}} | ||
=== Access rights === | === Access rights === | ||
Execute command as root {{UserCmd|command=sudo [command]}} | Execute command as root {{UserCmd|command=sudo [command]}} | ||
Empty password cache {{UserCmd|command=sudo -k}} | Empty password cache {{UserCmd|command=sudo -k}} | ||
| Line 51: | Line 46: | ||
Set permissions in octal mode: 4(read) 2(write) 1(execute) | Set permissions in octal mode: 4(read) 2(write) 1(execute) | ||
Example: 755 read-write-execute for owner and read-execute for group and others | Example: 755 read-write-execute for owner and read-execute for group and others | ||
Display files and permissions [of directory]{{UserCmd|command=ls -lh [dir]}} | Display files and permissions [of directory]{{UserCmd|command=ls -lh [dir]}} | ||
=== Files and Directories === | === Files and Directories === | ||
Change the working directory {{UserCmd|command=cd [dir]}} | Change the working directory {{UserCmd|command=cd [dir]}} | ||
Change to parent directory {{UserCmd|command=cd ..}} | Change to parent directory {{UserCmd|command=cd ..}} | ||
| Line 74: | Line 66: | ||
Directory with global configurations {{UserCmd|command=cd /etc}} | Directory with global configurations {{UserCmd|command=cd /etc}} | ||
=== Network === | === Network === | ||
Display network information {{UserCmd|command=nmcli}} | Display network information {{UserCmd|command=nmcli}} | ||
List wireless access points {{UserCmd|command=nmcli c}} | List wireless access points {{UserCmd|command=nmcli c}} | ||
| Line 85: | Line 76: | ||
Allows/deny incoming traffic from specified IP address {{UserCmd|command=ufw [allow/deny] from [ip]}} | Allows/deny incoming traffic from specified IP address {{UserCmd|command=ufw [allow/deny] from [ip]}} | ||
=== System and Screen === | === System and Screen === | ||
Display kernel version {{UserCmd|command=uname -r}} | Display kernel version {{UserCmd|command=uname -r}} | ||
Display long kernel version {{UserCmd|command=uname -a}} | Display long kernel version {{UserCmd|command=uname -a}} | ||
Report file system disk space usage {{UserCmd|command=df [/] [/home]}} {{UserCmd|command=sudo btrfs filesystem usage -h [/]}} | Report file system disk space usage {{UserCmd|command=df [/] [/home]}} {{UserCmd|command=sudo btrfs filesystem usage -h [/]}} | ||
Display system tasks {{UserCmd|command=top}} {{UserCmd|command=htop}} | Display system tasks {{UserCmd|command=top}} {{UserCmd|command=htop}} | ||
Display system information {{UserCmd|command=inxi -- | Display system information {{UserCmd|command=inxi --filter --verbosity=8}} | ||
Display system information (from chroot){{UserCmd|command=inxi --filter --verbosity=8 --color}} | |||
Display a tree of processes {{UserCmd|command=pstree}} | Display a tree of processes {{UserCmd|command=pstree}} | ||
Switch to tty | Switch to tty | ||
* {{key press|Ctrl|Alt|F1}} | * {{key press|Ctrl|Alt|F1}} | ||
| Line 104: | Line 94: | ||
* {{key press|Ctrl|Alt|F6}} | * {{key press|Ctrl|Alt|F6}} | ||
Switch to the X session | Switch to the X session | ||
* {{key press|Ctrl|Alt|F7}} | * {{key press|Ctrl|Alt|F7}} | ||
Start a unit {{UserCmd|command=systemctl start unit}} | Start a unit {{UserCmd|command=systemctl start unit}} | ||
Stop a unit {{UserCmd|command=systemctl stop unit}} | Stop a unit {{UserCmd|command=systemctl stop unit}} | ||
| Line 118: | Line 106: | ||
Restart the system {{UserCmd|command=reboot}} | Restart the system {{UserCmd|command=reboot}} | ||
<!-- More Detail for formatter: https://www.mediawiki.org/wiki/Help:Formatting --> | <!-- More Detail for formatter: https://www.mediawiki.org/wiki/Help:Formatting --> | ||
<!-- Don't forget to look more templates: https://wiki.manjaro.org/index.php/Help:Template --> | <!-- Don't forget to look more templates: https://wiki.manjaro.org/index.php/Help:Template --> | ||
=See Also= | =See Also= | ||
[https://forum.manjaro.org/t/manjaro-cli-cheat-sheet/101305 Original forum post] | [https://forum.manjaro.org/t/manjaro-cli-cheat-sheet/101305 Original forum post] | ||
<!--Category or categories should have a translation extension below example--> | <!--Category or categories should have a translation extension below example--> | ||
[[Category:Boilerplate{{#translation:}}]] | [[Category:Boilerplate{{#translation:}}]] | ||