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