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