Darmowy konwerter

Linux/Bash Ściągawka poleceń

Kompleksowa ściągawka dotycząca poleceń Linux i Bash. Wyszukaj ponad 80 podstawowych poleceń za pomocą przykładów, opisów i kopii jednym kliknięciem.

ls
List directory contents
Przykład:ls -la /home/user
ls -la
List all files including hidden, with details
Przykład:ls -la ~/Documents
cd
Change directory
Przykład:cd /var/log
pwd
Print working directory path
Przykład:pwd
mkdir
Create a new directory
Przykład:mkdir -p /tmp/mydir/subdir
rm
Remove files or directories
Przykład:rm -rf /tmp/oldfiles
cp
Copy files or directories
Przykład:cp -r /src/dir /dst/dir
mv
Move or rename files/directories
Przykład:mv oldname.txt newname.txt
touch
Create an empty file or update timestamp
Przykład:touch newfile.txt
find
Search for files in a directory hierarchy
Przykład:find /home -name '*.log' -mtime -7
locate
Find files by name using a prebuilt database
Przykład:locate nginx.conf
ln
Create hard or symbolic links
Przykład:ln -s /path/to/target /path/to/link
df
Report disk space usage of file systems
Przykład:df -h
du
Estimate file space usage
Przykład:du -sh /var/log/*
stat
Display file or file system status
Przykład:stat /etc/passwd
file
Determine file type
Przykład:file /usr/bin/bash
cat
Concatenate and display file contents
Przykład:cat /etc/hosts
less
View file content one screen at a time
Przykład:less /var/log/syslog
more
View file content page by page
Przykład:more /etc/passwd
head
Output the first part of a file
Przykład:head -n 20 /var/log/auth.log
tail
Output the last part of a file
Przykład:tail -f /var/log/syslog
grep
Search text using patterns
Przykład:grep -rn 'error' /var/log/
sed
Stream editor for filtering and transforming text
Przykład:sed 's/old/new/g' file.txt
awk
Pattern scanning and text processing language
Przykład:awk '{print $1, $3}' access.log
sort
Sort lines of text files
Przykład:sort -k2 -n data.txt
uniq
Report or omit repeated lines
Przykład:sort file.txt | uniq -c
wc
Print newline, word, and byte counts
Przykład:wc -l /etc/passwd
cut
Remove sections from each line of files
Przykład:cut -d: -f1 /etc/passwd
tr
Translate or delete characters
Przykład:echo 'hello' | tr 'a-z' 'A-Z'
echo
Display a line of text
Przykład:echo "Hello, World!"
printf
Format and print data
Przykład:printf "%s\t%d\n" name 42
diff
Compare files line by line
Przykład:diff file1.txt file2.txt
tee
Read from stdin and write to stdout and files
Przykład:ls | tee output.txt
ps
Report a snapshot of current processes
Przykład:ps aux | grep nginx
top
Display Linux processes in real time
Przykład:top -u www-data
htop
Interactive process viewer (ncurses-based)
Przykład:htop
kill
Send a signal to a process
Przykład:kill -9 1234
killall
Kill processes by name
Przykład:killall firefox
bg
Resume a suspended job in the background
Przykład:bg %1
fg
Bring a job to the foreground
Przykład:fg %1
jobs
List active jobs in the current shell
Przykład:jobs -l
nohup
Run a command immune to hangups
Przykład:nohup ./script.sh &
nice
Run a command with modified scheduling priority
Przykład:nice -n 10 ./heavy_task.sh
systemctl
Control the systemd system and service manager
Przykład:systemctl restart nginx
service
Run a System V init script
Przykład:service apache2 status
ping
Send ICMP ECHO_REQUEST to network hosts
Przykład:ping -c 4 google.com
curl
Transfer data from or to a server
Przykład:curl -L -o file.zip https://example.com/file.zip
wget
Non-interactive network downloader
Przykład:wget -q https://example.com/file.tar.gz
ssh
OpenSSH remote login client
Przykład:ssh -i ~/.ssh/key.pem user@host
scp
Secure copy files between hosts
Przykład:scp user@host:/path/file.txt ./local/
rsync
Remote file copying tool with delta transfer
Przykład:rsync -avz /src/ user@host:/dst/
netstat
Print network connections and routing tables
Przykład:netstat -tulpn
ss
Utility to investigate sockets
Przykład:ss -tulwn
ifconfig
Configure a network interface
Przykład:ifconfig eth0
ip
Show and manipulate routing, devices, and tunnels
Przykład:ip addr show
nmap
Network exploration tool and port scanner
Przykład:nmap -sV 192.168.1.0/24
dig
DNS lookup utility
Przykład:dig +short A google.com
nslookup
Query Internet name servers interactively
Przykład:nslookup example.com
chmod
Change file mode bits (permissions)
Przykład:chmod 755 script.sh
chown
Change file owner and group
Przykład:chown -R www-data:www-data /var/www
chgrp
Change group ownership
Przykład:chgrp developers project/
sudo
Execute a command as another user (superuser)
Przykład:sudo systemctl restart nginx
su
Change user ID or become superuser
Przykład:su - postgres
passwd
Change user password
Przykład:passwd username
umask
Set or display the file mode creation mask
Przykład:umask 022
id
Print user and group information
Przykład:id username
whoami
Print the current effective user name
Przykład:whoami
groups
Print the groups a user is in
Przykład:groups username
tar
Archive files using tape archive format
Przykład:tar -czvf archive.tar.gz /path/to/dir
tar -x
Extract files from a tar archive
Przykład:tar -xzvf archive.tar.gz -C /target/
gzip
Compress files using GNU zip
Przykład:gzip -9 large_file.log
gunzip
Decompress gzip compressed files
Przykład:gunzip archive.tar.gz
zip
Package and compress files into a ZIP archive
Przykład:zip -r output.zip /path/to/dir
unzip
Extract files from a ZIP archive
Przykład:unzip archive.zip -d /target/
bzip2
Compress files using bzip2 algorithm
Przykład:bzip2 -z large_file.txt
xz
Compress files using the XZ algorithm
Przykład:xz -z -9 file.txt
uname
Print system information
Przykład:uname -a
uptime
Tell how long the system has been running
Przykład:uptime
free
Display amount of free and used memory
Przykład:free -h
lscpu
Display information about the CPU architecture
Przykład:lscpu
lsblk
List information about block devices
Przykład:lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
lspci
List all PCI devices
Przykład:lspci -v | grep VGA
dmesg
Print or control the kernel ring buffer
Przykład:dmesg | tail -50
journalctl
Query and display messages from the journal
Przykład:journalctl -u nginx --since '1 hour ago'
history
Display the command history list
Przykład:history | grep docker
env
Print environment variables
Przykład:env | grep PATH
if / then / fi
Conditional execution in shell scripts
Przykład:if [ -f file.txt ]; then echo exists; fi
for
Loop over a list of items
Przykład:for i in 1 2 3; do echo $i; done
while
Execute commands while a condition is true
Przykład:while read line; do echo $line; done < file
case
Multi-branch conditional matching pattern
Przykład:case "$var" in a) echo A;; b) echo B;; esac
function
Define a shell function
Przykład:greet() { echo "Hello, $1!"; }; greet World
export
Set environment variables for child processes
Przykład:export MY_VAR=value
source
Execute commands from a file in current shell
Przykład:source ~/.bashrc
alias
Create an alias for a command
Przykład:alias ll='ls -la'
cron / crontab
Schedule commands to run periodically
Przykład:crontab -e # 0 * * * * /path/to/script.sh
at
Execute commands at a specified time
Przykład:echo 'ls /tmp' | at 14:30

O tym narzędziu

Obszerny przewodnik skrócony dotyczący systemu Linux Bash. Przeglądaj często używane polecenia, składnię i przykłady uporządkowane według kategorii. Możliwość wyszukiwania i przyjazna dla urządzeń mobilnych — dodaj tę stronę do zakładek, aby uzyskać natychmiastowy dostęp, gdy potrzebujesz szybkiego przypomnienia.

Jak używać

  1. Przeglądaj podzielone na kategorie sekcje referencyjne.
  2. Użyj paska wyszukiwania, aby znaleźć określone polecenia lub składnię.
  3. Kliknij dowolny wpis, aby zobaczyć przykłady użycia i objaśnienia.
  4. Kopiuj polecenia bezpośrednio do użycia w terminalu lub edytorze.

Często zadawane pytania

Czy to odniesienie jest aktualne?
Odniesienie obejmuje powszechnie używane polecenia i składnię, która jest stabilna w różnych wersjach. Najnowsze dodatki lub funkcje specyficzne dla wersji można znaleźć w oficjalnej dokumentacji.
Czy mogę używać tego offline?
Po załadowaniu strona działa bez połączenia z Internetem. Dodaj go do zakładek, aby uzyskać szybki dostęp — cała zawartość jest renderowana w przeglądarce bez dalszych żądań sieciowych.
Czy to jest kompleksowe, czy tylko podstawy?
Obejmuje najczęściej używane polecenia i wzorce, które obsługują 90% codziennych zadań. W przypadku funkcji niszowych lub zaawansowanych zapoznaj się z oficjalną dokumentacją.
Czy mogę zaproponować dodatki?
Regularnie aktualizujemy nasze referencje. Jeśli zauważysz brakujące polecenia lub masz sugestie, daj nam znać za pośrednictwem naszej strony kontaktowej.