filemanager, trustuser
22
edits
m (Formattierung der keys) |
(Fixed some stuff) Tags: Mobile web edit Mobile edit |
||
Line 1: | Line 1: | ||
<!-- Example titles --> | <!-- Example titles --> | ||
= CheatSheet for Manjaro = | = Commands CheatSheet for Manjaro = | ||
<!-- TOC shows contents of the page --> | <!-- TOC shows contents of the page --> | ||
Line 9: | Line 8: | ||
=== Locating and Installing Packages === | === Locating and Installing Packages === | ||
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]}} | ||
Search for a package {{UserCmd|command=pamac search [PackageName]}} | |||
Update installed packages {{UserCmd|command=pamac upgrade}} | |||
Search for a package {{UserCmd|command=pamac search [PackageName]}} | |||
Check for updates {{UserCmd|command=pamac checkupdates}} | |||
=== Maintenance === | === Maintenance === | ||
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/*}} | ||
Purge files not accessed in 100 days {{UserCmd|command=find ~/.cache/ -type f -atime +100 -delete}} | Purge files not accessed in 100 days {{UserCmd|command=find ~/.cache/ -type f -atime +100 -delete}} | ||
Line 29: | Line 28: | ||
=== AUR === | === AUR === | ||
Search for | 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}} | |||
Change user password {{UserCmd|command=passwd username}} | |||
Change user password {{UserCmd|command=passwd}} | |||
Change owner and group of file {{UserCmd|command=chown [owner]:[group] -c [file]}} | Change owner and group of file {{UserCmd|command=chown [owner]:[group] -c [file]}} | ||
Change file permissions {{UserCmd|command=chmod [permissions] -c [file]}} | Change file permissions {{UserCmd|command=chmod [permissions] -c [file]}} | ||
Line 49: | Line 47: | ||
Change the working directory {{UserCmd|command=cd [dir]}} | Change the working directory {{UserCmd|command=cd [dir]}} | ||
Change to parent directory {{UserCmd|command=cd ..}} | |||
List directory contents {{UserCmd|command=ls -l}} | List directory contents {{UserCmd|command=ls -l}} | ||
List also hidden files {{UserCmd|command=ls -la}} | List also hidden files {{UserCmd|command=ls -la}} | ||
Copy file {{UserCmd|command=cp [file] [target]}} | |||
Copy directory '''recursively''' {{UserCmd|command=cp -r [directory] [target]}} | |||
Move or rename file/directory {{UserCmd|command=mv [source] [target]}} | Move or rename file/directory {{UserCmd|command=mv [source] [target]}} | ||
Remove directory '''recursively''' {{UserCmd|command=rm -r [dir]}} | Remove directory '''recursively''' {{UserCmd|command=rm -r [dir]}} | ||
Line 92: | Line 90: | ||
* {{key press|Ctrl|Alt|F7}} | * {{key press|Ctrl|Alt|F7}} | ||
Start a unit {{UserCmd|command=systemctl start unit}} | |||
Stop a unit {{UserCmd|command=systemctl stop unit}} | |||
Check status of a unit {{UserCmd|command=systemctl status unit}} | |||
Enable a unit {{UserCmd|command=systemctl enable unit}} | |||
Disable a unit {{UserCmd|command=systemctl disable unit}} | |||
Shut down the system {{UserCmd|command= | Restart a unit {{UserCmd|command=systemctl restart unit}} | ||
Restart the system {{UserCmd|command= | Shut down the system {{UserCmd|command=poweroff}} | ||
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 --> | ||
Line 106: | Line 105: | ||
=See Also= | =See Also= | ||
[https://forum.manjaro.org/t/manjaro-cli-cheat-sheet/101305 | [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:}}]] |