Безкоштовний конвертер
Linux / Bash Командна шпаргалка
Комплексна шпаргалка команд 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 Шпаргалка
Комплексна шпаргалка команд Git. Шукайте понад 80 основних команд Git із прикладами, описами та копією одним клацанням миші.
Команди Docker Шпаргалка
Комплексна шпаргалка команд Docker. Шукайте понад 70 основних команд Docker із прикладами, описами та копією одним клацанням миші.
Команди Vim Шпаргалка
Комплексна шпаргалка команд Vim. Шукайте понад 80 основних команд Vim із прикладами, описами та копією одним клацанням миші.
Форматувальник SQL & Прикраса
Миттєво форматуйте, покращуйте та очищайте запити SQL у своєму браузері. Завантаження не потрібне — повністю приватне та безкоштовне.