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