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