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