แปลงฟรี
ลินุกซ์ / ทุบตี แผ่นโกงคำสั่ง
แผ่นโกงคำสั่ง 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 ที่ครอบคลุม ค้นหาคำสั่ง Git ที่จำเป็นกว่า 80 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
คำสั่งนักเทียบท่า แผ่นโกง
แผ่นโกงคำสั่ง Docker ที่ครอบคลุม ค้นหาคำสั่ง Docker ที่จำเป็นมากกว่า 70 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
คำสั่งเป็นกลุ่ม แผ่นโกง
แผ่นโกงคำสั่ง Vim ที่ครอบคลุม ค้นหาคำสั่ง Vim ที่จำเป็นมากกว่า 80 รายการพร้อมตัวอย่าง คำอธิบาย และการคัดลอกในคลิกเดียว
ตัวจัดรูปแบบ SQL & บิวตี้ฟายเออร์
จัดรูปแบบ ตกแต่ง และล้างคำสั่ง SQL ทันทีในเบราว์เซอร์ของคุณ ไม่จำเป็นต้องอัปโหลด — เป็นส่วนตัวโดยสมบูรณ์และฟรี