ממיר חינם
לינוקס/באש דף רמות פקודות
גיליון רמאות מקיף של לינוקס ו-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 Commands Cheat Sheet
גיליון הונאה של פקודות Git. חפש ב-80+ פקודות Git חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
פקודות דוקר Cheat Sheet
גיליון הונאה של פקודות Docker מקיף. חפש ב-70+ פקודות Docker חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
פקודות Vim Cheat Sheet
גיליון הונאה של פקודות Vim מקיף. חפש ב-80+ פקודות Vim חיוניות עם דוגמאות, תיאורים והעתקה בלחיצה אחת.
מעצב SQL & מייפה
עיצוב, יפות ונקה שאילתות SQL באופן מיידי בדפדפן שלך. אין צורך בהעלאה - פרטי לחלוטין ובחינם.