Kostenloser Konverter
Linux / Bash Befehls-Spickzettel
Umfassender Spickzettel für Linux- und Bash-Befehle. Durchsuchen Sie über 80 wichtige Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
ls
List directory contents
Beispiel:
ls -la /home/userls -la
List all files including hidden, with details
Beispiel:
ls -la ~/Documentscd
Change directory
Beispiel:
cd /var/logpwd
Print working directory path
Beispiel:
pwdmkdir
Create a new directory
Beispiel:
mkdir -p /tmp/mydir/subdirrm
Remove files or directories
Beispiel:
rm -rf /tmp/oldfilescp
Copy files or directories
Beispiel:
cp -r /src/dir /dst/dirmv
Move or rename files/directories
Beispiel:
mv oldname.txt newname.txttouch
Create an empty file or update timestamp
Beispiel:
touch newfile.txtfind
Search for files in a directory hierarchy
Beispiel:
find /home -name '*.log' -mtime -7locate
Find files by name using a prebuilt database
Beispiel:
locate nginx.confln
Create hard or symbolic links
Beispiel:
ln -s /path/to/target /path/to/linkdf
Report disk space usage of file systems
Beispiel:
df -hdu
Estimate file space usage
Beispiel:
du -sh /var/log/*stat
Display file or file system status
Beispiel:
stat /etc/passwdfile
Determine file type
Beispiel:
file /usr/bin/bashcat
Concatenate and display file contents
Beispiel:
cat /etc/hostsless
View file content one screen at a time
Beispiel:
less /var/log/syslogmore
View file content page by page
Beispiel:
more /etc/passwdhead
Output the first part of a file
Beispiel:
head -n 20 /var/log/auth.logtail
Output the last part of a file
Beispiel:
tail -f /var/log/sysloggrep
Search text using patterns
Beispiel:
grep -rn 'error' /var/log/sed
Stream editor for filtering and transforming text
Beispiel:
sed 's/old/new/g' file.txtawk
Pattern scanning and text processing language
Beispiel:
awk '{print $1, $3}' access.logsort
Sort lines of text files
Beispiel:
sort -k2 -n data.txtuniq
Report or omit repeated lines
Beispiel:
sort file.txt | uniq -cwc
Print newline, word, and byte counts
Beispiel:
wc -l /etc/passwdcut
Remove sections from each line of files
Beispiel:
cut -d: -f1 /etc/passwdtr
Translate or delete characters
Beispiel:
echo 'hello' | tr 'a-z' 'A-Z'echo
Display a line of text
Beispiel:
echo "Hello, World!"printf
Format and print data
Beispiel:
printf "%s\t%d\n" name 42diff
Compare files line by line
Beispiel:
diff file1.txt file2.txttee
Read from stdin and write to stdout and files
Beispiel:
ls | tee output.txtps
Report a snapshot of current processes
Beispiel:
ps aux | grep nginxtop
Display Linux processes in real time
Beispiel:
top -u www-datahtop
Interactive process viewer (ncurses-based)
Beispiel:
htopkill
Send a signal to a process
Beispiel:
kill -9 1234killall
Kill processes by name
Beispiel:
killall firefoxbg
Resume a suspended job in the background
Beispiel:
bg %1fg
Bring a job to the foreground
Beispiel:
fg %1jobs
List active jobs in the current shell
Beispiel:
jobs -lnohup
Run a command immune to hangups
Beispiel:
nohup ./script.sh &nice
Run a command with modified scheduling priority
Beispiel:
nice -n 10 ./heavy_task.shsystemctl
Control the systemd system and service manager
Beispiel:
systemctl restart nginxservice
Run a System V init script
Beispiel:
service apache2 statusping
Send ICMP ECHO_REQUEST to network hosts
Beispiel:
ping -c 4 google.comcurl
Transfer data from or to a server
Beispiel:
curl -L -o file.zip https://example.com/file.zipwget
Non-interactive network downloader
Beispiel:
wget -q https://example.com/file.tar.gzssh
OpenSSH remote login client
Beispiel:
ssh -i ~/.ssh/key.pem user@hostscp
Secure copy files between hosts
Beispiel:
scp user@host:/path/file.txt ./local/rsync
Remote file copying tool with delta transfer
Beispiel:
rsync -avz /src/ user@host:/dst/netstat
Print network connections and routing tables
Beispiel:
netstat -tulpnss
Utility to investigate sockets
Beispiel:
ss -tulwnifconfig
Configure a network interface
Beispiel:
ifconfig eth0ip
Show and manipulate routing, devices, and tunnels
Beispiel:
ip addr shownmap
Network exploration tool and port scanner
Beispiel:
nmap -sV 192.168.1.0/24dig
DNS lookup utility
Beispiel:
dig +short A google.comnslookup
Query Internet name servers interactively
Beispiel:
nslookup example.comchmod
Change file mode bits (permissions)
Beispiel:
chmod 755 script.shchown
Change file owner and group
Beispiel:
chown -R www-data:www-data /var/wwwchgrp
Change group ownership
Beispiel:
chgrp developers project/sudo
Execute a command as another user (superuser)
Beispiel:
sudo systemctl restart nginxsu
Change user ID or become superuser
Beispiel:
su - postgrespasswd
Change user password
Beispiel:
passwd usernameumask
Set or display the file mode creation mask
Beispiel:
umask 022id
Print user and group information
Beispiel:
id usernamewhoami
Print the current effective user name
Beispiel:
whoamigroups
Print the groups a user is in
Beispiel:
groups usernametar
Archive files using tape archive format
Beispiel:
tar -czvf archive.tar.gz /path/to/dirtar -x
Extract files from a tar archive
Beispiel:
tar -xzvf archive.tar.gz -C /target/gzip
Compress files using GNU zip
Beispiel:
gzip -9 large_file.loggunzip
Decompress gzip compressed files
Beispiel:
gunzip archive.tar.gzzip
Package and compress files into a ZIP archive
Beispiel:
zip -r output.zip /path/to/dirunzip
Extract files from a ZIP archive
Beispiel:
unzip archive.zip -d /target/bzip2
Compress files using bzip2 algorithm
Beispiel:
bzip2 -z large_file.txtxz
Compress files using the XZ algorithm
Beispiel:
xz -z -9 file.txtuname
Print system information
Beispiel:
uname -auptime
Tell how long the system has been running
Beispiel:
uptimefree
Display amount of free and used memory
Beispiel:
free -hlscpu
Display information about the CPU architecture
Beispiel:
lscpulsblk
List information about block devices
Beispiel:
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTlspci
List all PCI devices
Beispiel:
lspci -v | grep VGAdmesg
Print or control the kernel ring buffer
Beispiel:
dmesg | tail -50journalctl
Query and display messages from the journal
Beispiel:
journalctl -u nginx --since '1 hour ago'history
Display the command history list
Beispiel:
history | grep dockerenv
Print environment variables
Beispiel:
env | grep PATHif / then / fi
Conditional execution in shell scripts
Beispiel:
if [ -f file.txt ]; then echo exists; fifor
Loop over a list of items
Beispiel:
for i in 1 2 3; do echo $i; donewhile
Execute commands while a condition is true
Beispiel:
while read line; do echo $line; done < filecase
Multi-branch conditional matching pattern
Beispiel:
case "$var" in a) echo A;; b) echo B;; esacfunction
Define a shell function
Beispiel:
greet() { echo "Hello, $1!"; }; greet Worldexport
Set environment variables for child processes
Beispiel:
export MY_VAR=valuesource
Execute commands from a file in current shell
Beispiel:
source ~/.bashrcalias
Create an alias for a command
Beispiel:
alias ll='ls -la'cron / crontab
Schedule commands to run periodically
Beispiel:
crontab -e # 0 * * * * /path/to/script.shat
Execute commands at a specified time
Beispiel:
echo 'ls /tmp' | at 14:30Ähnliche Tools
Alle Tools ansehenGit-Befehle Spickzettel
Umfassender Git-Befehls-Spickzettel. Durchsuchen Sie über 80 wichtige Git-Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
Docker-Befehle Spickzettel
Umfassender Spickzettel für Docker-Befehle. Durchsuchen Sie mehr als 70 wichtige Docker-Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
Vim-Befehle Spickzettel
Umfassender Vim-Befehls-Spickzettel. Durchsuchen Sie über 80 wichtige Vim-Befehle mit Beispielen, Beschreibungen und Kopien mit einem Klick.
SQL-Formatierer & Verschönerer
Formatieren, verschönern und bereinigen Sie SQL-Abfragen sofort in Ihrem Browser. Kein Upload erforderlich — vollständig privat und kostenlos.