Linux Command Line Befehle: Unterschied zwischen den Versionen
Gego (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Gego (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 24: | Zeile 24: | ||
<code>sudo apt-get upgrade </code> Upgrade OS and packages | <code>sudo apt-get upgrade </code> Upgrade OS and packages | ||
==Directory Operations== | |||
<code>pwd</code> Show current directory | |||
<code>mkdir dir</code> Make directory dir | |||
<code>cd dir</code> Change directory to dir | |||
<code>cd ..</code> Go up a directory | |||
<code>ls</code> List files | |||
==ls Options== | |||
<code>-a </code> Show all (including hidden) | |||
<code>-R </code> Recursive list | |||
<code>-r </code> Reverse order | |||
<code>-t </code> Sort by last modified | |||
<code>-S </code> Sort by file size | |||
<code>-l </code> Long listing format | |||
<code>-1 </code> One file per line | |||
<code>-m </code> Comma-separated output | |||
<code>-Q</code> Quoted output | |||
Version vom 28. September 2022, 18:26 Uhr
INFORMATION
Details: Siehe Volltext. Sprache der Inhalte: Deutsch.
- Linux Command Line FAQ
- ELib Team
- 2022 2022
- Siehe eLib.at Lizenz, so nicht extra anders angegeben.
- Graues Werk
- Onlineversion - Archivversion
Zitierhilfe: Zitiere diese Inhalte in verschiedenen Zitierstilen. Archivkopien aller Inhalte finden sich auch im großartigen Internet Archive (Spenden).
QUERVERBINDUNGEN
Verbindungen mit Personen, Orten, Dingen und Ereignissen finden sich unter Themen und Schwerpunkte.
TAGS & KATEGORIEN
Linux Command Line Befehle
System Care
sudo apt-get update
Update List of Packages
sudo apt-get upgrade
Upgrade OS and packages
Directory Operations
pwd
Show current directory
mkdir dir
Make directory dir
cd dir
Change directory to dir
cd ..
Go up a directory
ls
List files
ls Options
-a
Show all (including hidden)
-R
Recursive list
-r
Reverse order
-t
Sort by last modified
-S
Sort by file size
-l
Long listing format
-1
One file per line
-m
Comma-separated output
-Q
Quoted output
Bash Commands
uname -a
Show system and kernel
head -n1 /etc/issue
Show distribution
mount
Show mounted filesystems
date
Show system date
uptime
Show uptime
whoami
Show your username
man command
Show manual for command
Bash Shortcuts
CTRL-c
Stop current command
CTRL-z
Sleep program
CTRL-a
Go to start of line
CTRL-e
Go to end of line
CTRL-u
Cut from start of line
CTRL-k
Cut to end of line
CTRL-r
Search history
!!
Repeat last command
!abc
Run last command starting with abc
!abc:p
Print last command starting with abc
!$
Last argument of previous command
ALT-.
Last argument of previous command
!*
All arguments of previous command
^abc^123
Run previous command, replacing abc with 123
Bash Variables
env
Show environment variables
echo $NAME
Output value of $NAME variable
export NAME=value
Set $NAME to value
$PATH
Executable search path
$HOME
Home directory
$SHELL
Current shell
Links
.
Endnoten