Difference between revisions of "CheatSheet"
Views
Actions
Namespaces
Variants
Tools
m (Adding a translation option) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!-- Example titles --> | <!-- Example titles --> | ||
= Commands CheatSheet for Manjaro = | = Commands CheatSheet for Manjaro = <!--T:1--> | ||
<!--T:2--> | |||
<!-- TOC shows contents of the page --> | <!-- TOC shows contents of the page --> | ||
__TOC__ | __TOC__ | ||
=== Locating and Installing Packages === | === Locating and Installing Packages === <!--T:3--> | ||
<!--T:4--> | |||
Install packages {{UserCmd|command=pamac install [PackageName]}} | Install packages {{UserCmd|command=pamac install [PackageName]}} | ||
Uninstall packages {{UserCmd|command=pamac remove [PackageName]}} | Uninstall packages {{UserCmd|command=pamac remove [PackageName]}} | ||
Line 16: | Line 18: | ||
Check for updates {{UserCmd|command=pamac checkupdates}} | Check for updates {{UserCmd|command=pamac checkupdates}} | ||
=== Maintenance === | === Maintenance === <!--T:5--> | ||
<!--T:6--> | |||
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 27: | Line 30: | ||
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 === <!--T:7--> | ||
<!--T:8--> | |||
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 === <!--T:9--> | ||
<!--T:10--> | |||
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 41: | Line 46: | ||
Set permissions in octal mode: 4(read) 2(write) 1(execute) | Set permissions in octal mode: 4(read) 2(write) 1(execute) | ||
<!--T:11--> | |||
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 | ||
<!--T:12--> | |||
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 === <!--T:13--> | ||
<!--T:14--> | |||
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 61: | Line 69: | ||
Directory with global configurations {{UserCmd|command=cd /etc}} | Directory with global configurations {{UserCmd|command=cd /etc}} | ||
=== Network === | === Network === <!--T:15--> | ||
<!--T:16--> | |||
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 71: | Line 80: | ||
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 === <!--T:17--> | ||
<!--T:18--> | |||
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}} | ||
Line 80: | Line 90: | ||
Display a tree of processes {{UserCmd|command=pstree}} | Display a tree of processes {{UserCmd|command=pstree}} | ||
<!--T:19--> | |||
Switch to tty | Switch to tty | ||
* {{key press|Ctrl|Alt|F1}} | * {{key press|Ctrl|Alt|F1}} | ||
Line 88: | Line 99: | ||
* {{key press|Ctrl|Alt|F6}} | * {{key press|Ctrl|Alt|F6}} | ||
<!--T:20--> | |||
Switch to the X session | Switch to the X session | ||
* {{key press|Ctrl|Alt|F7}} | * {{key press|Ctrl|Alt|F7}} | ||
<!--T:21--> | |||
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 100: | Line 113: | ||
Restart the system {{UserCmd|command=reboot}} | Restart the system {{UserCmd|command=reboot}} | ||
<!--T:22--> | |||
<!-- More Detail for formatter: https://www.mediawiki.org/wiki/Help:Formatting --> | <!-- More Detail for formatter: https://www.mediawiki.org/wiki/Help:Formatting --> | ||
<!--T:23--> | |||
<!-- 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= <!--T:24--> | ||
<!--T:25--> | |||
[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] | ||
</translate> | </translate> | ||
<!--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:}}]] |
Revision as of 12:42, 15 December 2022
Commands CheatSheet for Manjaro
Locating and Installing Packages
Install packages
Uninstall packages
Search for a package
Update installed packages
Search for a package
Check for updates
Maintenance
Generates a random mirrorlist for the users and sort them by their current access time.
Generate cache list
Purge files not accessed in 100 days
Report journal current size
Remove but recent entries by size or time
Check for orphaned packages
Remove all orphans
Remove all packages except the latest 3 versions
AUR
Search for package
Build the package
Access rights
Execute command as root
Empty password cache
Change user password
Change owner and group of file
Change file permissions
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
Display files and permissions [of directory]
Files and Directories
Change the working directory
Change to parent directory
List directory contents
List also hidden files
Copy file
Copy directory recursively
Move or rename file/directory
Remove directory recursively
Create symbolic link
Mount filesystem
Mount ISO image
Home directory of user
Directory with global configurations
Network
Display network information
List wireless access points
Enable firewall [package Community: ufw]
Allow/deny all incoming traffic
Displays firewall status and rules
Allows/deny incoming traffic on the specified port
Allows/deny incoming traffic from specified IP address
System and Screen
Display kernel version
Display long kernel version
Report file system disk space usage
Display system tasks
Display system information
Display a tree of processes
Switch to tty
- Ctrl+Alt+F1
- Ctrl+Alt+F2
- Ctrl+Alt+F3
- Ctrl+Alt+F4
- Ctrl+Alt+F5
- Ctrl+Alt+F6
Switch to the X session
- Ctrl+Alt+F7
Start a unit
Stop a unit
Check status of a unit
Enable a unit
Disable a unit
Restart a unit
Shut down the system
Restart the system