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