+3 votes
81 views
in Linux by (242k points)
reopened
Linux commands: The 20 most important commands

1 Answer

+4 votes
by (1.6m points)
 
Best answer

The 20 most important Linux commands

Have you just switched to Linux and need help with the commands? We'll help you in our tips + tricks article..

image image

If you've just made the move to Linux, you should familiarize yourself with the basic commands you can enter in the Terminal window. But even as an experienced Linux user, you may not always have all the commands in your head. That's why we've put together the most important Linux basic commands for you.

The 20 most important Linux commands

In order to enter Linux commands, you must first open a terminal window. The terminal - also known as the shell or console - is a tool that you can use to give commands to the computer. In Ubuntu, for example, you open the terminal with the key combination [Ctrl] + [Alt] + [T] . Alternatively, you can also access the terminal via the dashboard. There you enter your commands behind the command prompt.

cat Linking files : With the "cat" command you can display files and link content.
CD Change directory : By entering the command "cd" you change to the next higher directory.
clear Clear input window : With the command "clear" you clear the input window and delete all previous inputs.
cp Copy files and directories : With the command "cp" you can copy files and directories to another location.
date Date and time : You can use the "date" command to display the date and time.
df Show file system and storage space : The "df" command opens the file system and shows the storage space there.
exit Ending the session : With "exit" you leave a program, a terminal or a UNIX network.
find Search for files in the directory tree : With "find" you can find certain files in the often confusing directory structures.
free Use of the main memory : The command "free" shows you statistics on the use of the main memory.
info Help file : You can use the "info" command to display a help file.
kill Killing processes : The "kill" command kills a process. To do this, you have to pass its process ID as a parameter. You can determine the IDs of the running processes with the command "ps -ef".
ls Show contents of directories : "ls" shows you all files that are in your current directory.
man Calling up the manual : Use the "man" command to open a manual page with information on a command or an application.
mv Move files and directories : The "mv" command moves files and directories within the folder structure.
passwd Change password : With the command "passwd" you have the possibility to change your password.
pwd Display of the current directory : If you no longer know which directory you are currently in, you can have it displayed using "pwd".
reboot Restart the computer : The "reboot" command will restart your computer.
rm Delete files and directories : With the help of "rm" you can delete individual files and entire directories.
unlink Delete files : You can also delete files with "unlink", but unlike "rm" you have no options.
wer bin ich Show username : If you are unsure which username you are currently working under, you can use the command "whoami" to display it.
cat Verknüpfung von Dateien : Mit dem Befehl "cat" kannst du dir Dateien anzeigen lassen und Inhalte verknüpfen.
cd Verzeichnis wechseln : Über die Eingabe des Befehls "cd" wechselst du in das nächsthöhere Verzeichnis.
clear Eingabefenster löschen : Mit dem Befehl "clear" räumst du das Eingabefenster auf und löscht alle bisherigen Eingaben.
cp Dateien und Verzeichnisse kopieren : Mit dem Befehl "cp" kannst du Dateien und Verzeichnisse an einen anderen Ort kopieren.
date Datum und Uhrzeit : Über den Befehl "date" kannst du dir Datum und Uhrzeit anzeigen lassen.
df Dateisystem und Speicherplatz anzeigen : Der Befehl "df" öffnet das Dateisystem und zeigt dort die Speicherbelegung an.
exit Beenden der Sitzung : Mit "exit" verlässt du ein Programm, ein Terminal oder ein UNIX-Netzwerk.
find Suche nach Dateien im Verzeichnisbaum : Mit "find" findest du bestimmte Dateien in den häufig unübersichtlichen Verzeichnisstrukturen.
free Nutzung des Arbeitsspeichers : Das Kommando "free" zeigt dir Statistiken zur Nutzung des Arbeitsspeichers an.
info Hilfe-Datei : Über den Befehl "info" kannst du dir eine Hilfe-Datei anzeigen lassen.
kill Prozesse beenden : Der Befehl "kill" beendet einen Prozess. Dazu musst du dessen Prozess-ID als Parameter übergeben. Die IDs der laufenden Prozesse ermittelst du mit dem Befehl "ps -ef".
ls Inhalte von Verzeichnisse anzeigen : "ls" zeigt dir alle Dateien an, die sich in deinem momentanen Verzeichnis befinden.
man Handbuch aufrufen : Über den Befehl "man" rufst du eine Handbuchseite mit Informationen zu einem Befehl oder einer Anwendung auf.
mv Dateien und Verzeichnisse verschieben : Das Kommando "mv" verschiebt Dateien und Verzeichnisse innerhalb der Ordnerstruktur.
passwd Passwort ändern : Mit dem Befehl "passwd" hast du die Möglichkeit, dein Passwort zu ändern.
pwd Anzeige des aktuellen Verzeichnisses : Wenn du nicht mehr weißt, in welchem Verzeichnis du dich gerade befindest, kannst du es dir mit Hilfe von "pwd" anzeigen lassen.
reboot Rechner neu starten : Das Kommando "reboot" startet deinen Rechner neu.
rm Dateien und Verzeichnisse löschen : Mit Hilfe von "rm" kannst du einzelne Dateien und ganze Verzeichnisse löschen.
unlink Dateien löschen : Auch mit "unlink" kannst du Dateien löschen, hast im Gegensatz zu "rm" aber keine Optionen.
whoami Benutzername anzeigen : Wenn du dir unsicher bist, unter welchem Benutzernamen du gerade arbeitest, kannst du dir diesen mit Hilfe des Befehlst "whoami" anzeigen lassen.

...