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