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