무료 변환기

리눅스 / 배쉬 명령 치트 시트

포괄적인 Linux 및 Bash 명령 치트 시트. 예제, 설명, 원클릭 복사를 통해 80개 이상의 필수 명령을 검색하세요.

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

이 도구에 대하여

Linux bash에 대한 포괄적인 빠른 참조 가이드입니다. 일반적으로 사용되는 명령, 구문, 예제를 범주별로 정리하여 찾아보세요. 검색 가능하고 모바일 친화적입니다. 빠른 알림이 필요할 때 즉시 액세스할 수 있도록 이 페이지를 북마크에 추가하세요.

사용 방법

  1. 분류된 참조 섹션을 찾아보세요.
  2. 검색창을 사용하여 특정 명령이나 구문을 찾으세요.
  3. 사용 예와 설명을 보려면 항목을 클릭하세요.
  4. 터미널이나 편집기에서 사용할 수 있도록 명령을 직접 복사하세요.

자주 묻는 질문

이 참조가 최신인가요?
이 참조는 여러 버전에서 안정적으로 널리 사용되는 명령과 구문을 다루고 있습니다. 최신 추가 사항이나 버전별 기능에 대해서는 공식 문서를 확인하세요.
이것을 오프라인으로 사용할 수 있나요?
페이지가 로드되면 인터넷 연결 없이도 페이지가 작동합니다. 빠른 액세스를 위해 북마크에 추가하세요. 추가 네트워크 요청 없이 모든 콘텐츠가 브라우저에서 렌더링됩니다.
이것은 포괄적입니까, 아니면 단지 기본입니까?
일상적인 작업의 90%를 처리하는 가장 일반적으로 사용되는 명령과 패턴을 다룹니다. 틈새 또는 고급 기능에 대해서는 공식 문서를 참조하세요.
추가 사항을 제안할 수 있나요?
우리는 정기적으로 참조를 업데이트합니다. 누락된 명령을 발견했거나 제안 사항이 있는 경우 연락처 페이지를 통해 알려주십시오.