Manjaro Difference between revisions of "CheatSheet/de"

Difference between revisions of "CheatSheet/de"

From Manjaro
(Created page with "<!-- Example titles --> = Befehls-CheatSheet für Manjaro =")
 
Line 1: Line 1:
<languages/>
<languages/>
<!-- Example titles -->
<!-- Example titles -->
= Befehls-CheatSheet für Manjaro =
= Befehls-Spickzettel für Manjaro =


<!-- TOC shows contents of the page -->
<!-- TOC shows contents of the page -->
Line 40: Line 40:
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Befehl als root ausführen {{UserCmd|command=sudo [command]}}
Execute command as root {{UserCmd|command=sudo [command]}}
Passwort-Cache leeren {{UserCmd|command=sudo -k}}
Empty password cache {{UserCmd|command=sudo -k}}
Benutzer-Passwort ändern {{UserCmd|command=passwd username}}
Change user password {{UserCmd|command=passwd username}}
Besitzer und Gruppe einer Datei ändern {{UserCmd|command=chown [owner]:[group] -c [file]}}
Change owner and group of file {{UserCmd|command=chown [owner]:[group] -c [file]}}
Zugangsberechtigungen für Datei ändern {{UserCmd|command=chmod [permissions] -c [file]}}
Change file permissions {{UserCmd|command=chmod [permissions] -c [file]}}
Berechtigungen im Oktalmodus festlegen: 4(read) 2(write) 1(execute)
Set permissions in octal mode: 4(read) 2(write) 1(execute)
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Beispiel: 755 Lesen-Schreiben-Ausführen für Besitzer und Lesen-Ausführen für Gruppe und andere
Example: 755 read-write-execute for owner and read-execute for group and others
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 95: Line 91:
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Kernel-Version anzeigen {{UserCmd|command=uname -r}}
Display kernel version {{UserCmd|command=uname -r}}
Lange Kernel-Version anzeigen {{UserCmd|command=uname -a}}
Display long kernel version {{UserCmd|command=uname -a}}
Speicherplatzbelegung des Dateisystems anzeigen {{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 [/]}}
Systemprozesse anzeigen {{UserCmd|command=top}}  {{UserCmd|command=htop}}
Display system tasks  {{UserCmd|command=top}}  {{UserCmd|command=htop}}
Systeminformationen anzeigen {{UserCmd|command=inxi --admin --verbosity=7 --filter --width}}
Display system information {{UserCmd|command=inxi --admin --verbosity=7 --filter --width}}
Prozessbaum anzeigen {{UserCmd|command=pstree}}
Display a tree of processes  {{UserCmd|command=pstree}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Zum tty wechseln  
Switch to tty   
* {{key press|Ctrl|Alt|F1}}  
* {{key press|Ctrl|Alt|F1}}  
* {{key press|Ctrl|Alt|F2}}  
* {{key press|Ctrl|Alt|F2}}  
Line 112: Line 105:
* {{key press|Ctrl|Alt|F5}}  
* {{key press|Ctrl|Alt|F5}}  
* {{key press|Ctrl|Alt|F6}}
* {{key press|Ctrl|Alt|F6}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 142: Line 134:
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
[https://forum.manjaro.org/t/manjaro-cli-cheat-sheet/101305 Ursprünglicher Forum-Post]
[https://forum.manjaro.org/t/manjaro-cli-cheat-sheet/101305 Original forum post]
</div>
<!--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 16:59, 14 May 2023

Other languages:
Deutsch • ‎English • ‎Türkçe • ‎русский

Befehls-Spickzettel für Manjaro

__Inhaltsverzeichnis__

Pakete finden und installieren

Pakete installieren

user $ pamac install [PackageName] COPY TO CLIPBOARD


Pakete deinstallieren

user $ pamac remove [PackageName] COPY TO CLIPBOARD


Paket suchen

user $ pamac search [PackageName] COPY TO CLIPBOARD


Installierte Pakete aktualisieren

user $ pamac upgrade COPY TO CLIPBOARD


Nach Updates suchen

user $ pamac checkupdates COPY TO CLIPBOARD


Wartung

Generates a random mirrorlist for the users and sort them by their current access time.
user $ sudo pacman-mirrors --fasttrack COPY TO CLIPBOARD

Generate cache list

user $ du -sh ~/.cache/* COPY TO CLIPBOARD


Purge files not accessed in 100 days

user $ find ~/.cache/ -type f -atime +100 -delete COPY TO CLIPBOARD


Report journal current size

user $ journalctl --disk-usage COPY TO CLIPBOARD


Remove but recent entries by size or time

user $ journalctl --vacuum-size=50M COPY TO CLIPBOARD


user $ journalctl --vacuum-time=2weeks COPY TO CLIPBOARD


Check for orphaned packages

user $ pamac list -o COPY TO CLIPBOARD


Remove all orphans

user $ pamac remove -o COPY TO CLIPBOARD


Remove all packages except the latest 3 versions

user $ pamac clean --keep 3 COPY TO CLIPBOARD


AUR

Search for package
user $ pamac search -a [PackageName] COPY TO CLIPBOARD

Build the package

user $ pamac build [PackageName] COPY TO CLIPBOARD


Access rights

Befehl als root ausführen

user $ sudo [command] COPY TO CLIPBOARD


Passwort-Cache leeren

user $ sudo -k COPY TO CLIPBOARD


Benutzer-Passwort ändern

user $ passwd username COPY TO CLIPBOARD


Besitzer und Gruppe einer Datei ändern

user $ chown [owner]:[group] -c [file] COPY TO CLIPBOARD


Zugangsberechtigungen für Datei ändern

user $ chmod [permissions] -c [file] COPY TO CLIPBOARD


Berechtigungen im Oktalmodus festlegen: 4(read) 2(write) 1(execute)

Beispiel: 755 Lesen-Schreiben-Ausführen für Besitzer und Lesen-Ausführen für Gruppe und andere

Display files and permissions [of directory]
user $ ls -lh [dir] COPY TO CLIPBOARD

Files and Directories

Change the working directory
user $ cd [dir] COPY TO CLIPBOARD

Change to parent directory

user $ cd .. COPY TO CLIPBOARD


List directory contents

user $ ls -l COPY TO CLIPBOARD


List also hidden files

user $ ls -la COPY TO CLIPBOARD


Copy file

user $ cp [file] [target] COPY TO CLIPBOARD


Copy directory recursively

user $ cp -r [directory] [target] COPY TO CLIPBOARD


Move or rename file/directory

user $ mv [source] [target] COPY TO CLIPBOARD


Remove directory recursively

user $ rm -r [dir] COPY TO CLIPBOARD


Create symbolic link

user $ ln -s [target] [link] COPY TO CLIPBOARD


Mount filesystem

user $ mount -t [type] [/dev/sdx9] [mountpoint] COPY TO CLIPBOARD


Mount ISO image

user $ mount -o loop [iso] [mountpoint] COPY TO CLIPBOARD


Home directory of user

user $ cd /home/$USER COPY TO CLIPBOARD


user $ cd ~ COPY TO CLIPBOARD


Directory with global configurations

user $ cd /etc COPY TO CLIPBOARD


Network

Display network information
user $ nmcli COPY TO CLIPBOARD

List wireless access points

user $ nmcli c COPY TO CLIPBOARD


Enable firewall [package Community: ufw]

user $ ufw enable COPY TO CLIPBOARD


Allow/deny all incoming traffic

user $ ufw default [allow/deny] COPY TO CLIPBOARD


Displays firewall status and rules

user $ ufw status COPY TO CLIPBOARD


Allows/deny incoming traffic on the specified port

user $ ufw [allow/deny] [port] COPY TO CLIPBOARD


Allows/deny incoming traffic from specified IP address

user $ ufw [allow/deny] from [ip] COPY TO CLIPBOARD


System and Screen

Kernel-Version anzeigen

user $ uname -r COPY TO CLIPBOARD


Lange Kernel-Version anzeigen

user $ uname -a COPY TO CLIPBOARD


Speicherplatzbelegung des Dateisystems anzeigen

user $ df [/] [/home] COPY TO CLIPBOARD


user $ sudo btrfs filesystem usage -h [/] COPY TO CLIPBOARD


Systemprozesse anzeigen

user $ top COPY TO CLIPBOARD


user $ htop COPY TO CLIPBOARD


Systeminformationen anzeigen

user $ inxi --admin --verbosity=7 --filter --width COPY TO CLIPBOARD


Prozessbaum anzeigen

user $ pstree COPY TO CLIPBOARD


Zum tty wechseln

  • 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
user $ systemctl start unit COPY TO CLIPBOARD

Stop a unit

user $ systemctl stop unit COPY TO CLIPBOARD


Check status of a unit

user $ systemctl status unit COPY TO CLIPBOARD


Enable a unit

user $ systemctl enable unit COPY TO CLIPBOARD


Disable a unit

user $ systemctl disable unit COPY TO CLIPBOARD


Restart a unit

user $ systemctl restart unit COPY TO CLIPBOARD


Shut down the system

user $ poweroff COPY TO CLIPBOARD


Restart the system

user $ reboot COPY TO CLIPBOARD


See Also

Ursprünglicher Forum-Post

Cookies help us deliver our services. By using our services, you agree to our use of cookies.