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