મફત કન્વર્ટર

Linux / Bash આદેશ ચીટ શીટ

વ્યાપક Linux અને Bash આદેશ ચીટ શીટ. ઉદાહરણો, વર્ણનો અને એક-ક્લિક નકલ સાથે 80+ આવશ્યક આદેશો શોધો.

ls
List directory contents
ઉદાહરણ:ls -la /home/user
ls -la
List all files including hidden, with details
ઉદાહરણ:ls -la ~/Documents
cd
Change directory
ઉદાહરણ:cd /var/log
pwd
Print working directory path
ઉદાહરણ:pwd
mkdir
Create a new directory
ઉદાહરણ:mkdir -p /tmp/mydir/subdir
rm
Remove files or directories
ઉદાહરણ:rm -rf /tmp/oldfiles
cp
Copy files or directories
ઉદાહરણ:cp -r /src/dir /dst/dir
mv
Move or rename files/directories
ઉદાહરણ:mv oldname.txt newname.txt
touch
Create an empty file or update timestamp
ઉદાહરણ:touch newfile.txt
find
Search for files in a directory hierarchy
ઉદાહરણ:find /home -name '*.log' -mtime -7
locate
Find files by name using a prebuilt database
ઉદાહરણ:locate nginx.conf
ln
Create hard or symbolic links
ઉદાહરણ:ln -s /path/to/target /path/to/link
df
Report disk space usage of file systems
ઉદાહરણ:df -h
du
Estimate file space usage
ઉદાહરણ:du -sh /var/log/*
stat
Display file or file system status
ઉદાહરણ:stat /etc/passwd
file
Determine file type
ઉદાહરણ:file /usr/bin/bash
cat
Concatenate and display file contents
ઉદાહરણ:cat /etc/hosts
less
View file content one screen at a time
ઉદાહરણ:less /var/log/syslog
more
View file content page by page
ઉદાહરણ:more /etc/passwd
head
Output the first part of a file
ઉદાહરણ:head -n 20 /var/log/auth.log
tail
Output the last part of a file
ઉદાહરણ:tail -f /var/log/syslog
grep
Search text using patterns
ઉદાહરણ:grep -rn 'error' /var/log/
sed
Stream editor for filtering and transforming text
ઉદાહરણ:sed 's/old/new/g' file.txt
awk
Pattern scanning and text processing language
ઉદાહરણ:awk '{print $1, $3}' access.log
sort
Sort lines of text files
ઉદાહરણ:sort -k2 -n data.txt
uniq
Report or omit repeated lines
ઉદાહરણ:sort file.txt | uniq -c
wc
Print newline, word, and byte counts
ઉદાહરણ:wc -l /etc/passwd
cut
Remove sections from each line of files
ઉદાહરણ:cut -d: -f1 /etc/passwd
tr
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 42
diff
Compare files line by line
ઉદાહરણ:diff file1.txt file2.txt
tee
Read from stdin and write to stdout and files
ઉદાહરણ:ls | tee output.txt
ps
Report a snapshot of current processes
ઉદાહરણ:ps aux | grep nginx
top
Display Linux processes in real time
ઉદાહરણ:top -u www-data
htop
Interactive process viewer (ncurses-based)
ઉદાહરણ:htop
kill
Send a signal to a process
ઉદાહરણ:kill -9 1234
killall
Kill processes by name
ઉદાહરણ:killall firefox
bg
Resume a suspended job in the background
ઉદાહરણ:bg %1
fg
Bring a job to the foreground
ઉદાહરણ:fg %1
jobs
List active jobs in the current shell
ઉદાહરણ:jobs -l
nohup
Run a command immune to hangups
ઉદાહરણ:nohup ./script.sh &
nice
Run a command with modified scheduling priority
ઉદાહરણ:nice -n 10 ./heavy_task.sh
systemctl
Control the systemd system and service manager
ઉદાહરણ:systemctl restart nginx
service
Run a System V init script
ઉદાહરણ:service apache2 status
ping
Send ICMP ECHO_REQUEST to network hosts
ઉદાહરણ:ping -c 4 google.com
curl
Transfer data from or to a server
ઉદાહરણ:curl -L -o file.zip https://example.com/file.zip
wget
Non-interactive network downloader
ઉદાહરણ:wget -q https://example.com/file.tar.gz
ssh
OpenSSH remote login client
ઉદાહરણ:ssh -i ~/.ssh/key.pem user@host
scp
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 -tulpn
ss
Utility to investigate sockets
ઉદાહરણ:ss -tulwn
ifconfig
Configure a network interface
ઉદાહરણ:ifconfig eth0
ip
Show and manipulate routing, devices, and tunnels
ઉદાહરણ:ip addr show
nmap
Network exploration tool and port scanner
ઉદાહરણ:nmap -sV 192.168.1.0/24
dig
DNS lookup utility
ઉદાહરણ:dig +short A google.com
nslookup
Query Internet name servers interactively
ઉદાહરણ:nslookup example.com
chmod
Change file mode bits (permissions)
ઉદાહરણ:chmod 755 script.sh
chown
Change file owner and group
ઉદાહરણ:chown -R www-data:www-data /var/www
chgrp
Change group ownership
ઉદાહરણ:chgrp developers project/
sudo
Execute a command as another user (superuser)
ઉદાહરણ:sudo systemctl restart nginx
su
Change user ID or become superuser
ઉદાહરણ:su - postgres
passwd
Change user password
ઉદાહરણ:passwd username
umask
Set or display the file mode creation mask
ઉદાહરણ:umask 022
id
Print user and group information
ઉદાહરણ:id username
whoami
Print the current effective user name
ઉદાહરણ:whoami
groups
Print the groups a user is in
ઉદાહરણ:groups username
tar
Archive files using tape archive format
ઉદાહરણ:tar -czvf archive.tar.gz /path/to/dir
tar -x
Extract files from a tar archive
ઉદાહરણ:tar -xzvf archive.tar.gz -C /target/
gzip
Compress files using GNU zip
ઉદાહરણ:gzip -9 large_file.log
gunzip
Decompress gzip compressed files
ઉદાહરણ:gunzip archive.tar.gz
zip
Package and compress files into a ZIP archive
ઉદાહરણ:zip -r output.zip /path/to/dir
unzip
Extract files from a ZIP archive
ઉદાહરણ:unzip archive.zip -d /target/
bzip2
Compress files using bzip2 algorithm
ઉદાહરણ:bzip2 -z large_file.txt
xz
Compress files using the XZ algorithm
ઉદાહરણ:xz -z -9 file.txt
uname
Print system information
ઉદાહરણ:uname -a
uptime
Tell how long the system has been running
ઉદાહરણ:uptime
free
Display amount of free and used memory
ઉદાહરણ:free -h
lscpu
Display information about the CPU architecture
ઉદાહરણ:lscpu
lsblk
List information about block devices
ઉદાહરણ:lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
lspci
List all PCI devices
ઉદાહરણ:lspci -v | grep VGA
dmesg
Print or control the kernel ring buffer
ઉદાહરણ:dmesg | tail -50
journalctl
Query and display messages from the journal
ઉદાહરણ:journalctl -u nginx --since '1 hour ago'
history
Display the command history list
ઉદાહરણ:history | grep docker
env
Print environment variables
ઉદાહરણ:env | grep PATH
if / then / fi
Conditional execution in shell scripts
ઉદાહરણ:if [ -f file.txt ]; then echo exists; fi
for
Loop over a list of items
ઉદાહરણ:for i in 1 2 3; do echo $i; done
while
Execute commands while a condition is true
ઉદાહરણ:while read line; do echo $line; done < file
case
Multi-branch conditional matching pattern
ઉદાહરણ:case "$var" in a) echo A;; b) echo B;; esac
function
Define a shell function
ઉદાહરણ:greet() { echo "Hello, $1!"; }; greet World
export
Set environment variables for child processes
ઉદાહરણ:export MY_VAR=value
source
Execute commands from a file in current shell
ઉદાહરણ:source ~/.bashrc
alias
Create an alias for a command
ઉદાહરણ:alias ll='ls -la'
cron / crontab
Schedule commands to run periodically
ઉદાહરણ:crontab -e # 0 * * * * /path/to/script.sh
at
Execute commands at a specified time
ઉદાહરણ:echo 'ls /tmp' | at 14:30

આ ટૂલ વિશે

linux bash માટે એક વ્યાપક ઝડપી-સંદર્ભ માર્ગદર્શિકા. સામાન્ય રીતે ઉપયોગમાં લેવાતા આદેશો, વાક્યરચના અને કેટેગરી દ્વારા સંગઠિત ઉદાહરણો બ્રાઉઝ કરો. શોધી શકાય તેવું અને મોબાઇલ-ફ્રેંડલી — જ્યારે તમને ઝડપી રીમાઇન્ડરની જરૂર હોય ત્યારે ત્વરિત ઍક્સેસ માટે આ પૃષ્ઠને બુકમાર્ક કરો.

કેવી રીતે વાપરવું

  1. વર્ગીકૃત સંદર્ભ વિભાગોને બ્રાઉઝ કરો.
  2. ચોક્કસ આદેશો અથવા વાક્યરચના શોધવા માટે શોધ બારનો ઉપયોગ કરો.
  3. ઉપયોગના ઉદાહરણો અને સમજૂતીઓ જોવા માટે કોઈપણ એન્ટ્રી પર ક્લિક કરો.
  4. તમારા ટર્મિનલ અથવા એડિટરમાં ઉપયોગ માટે સીધા જ આદેશોની નકલ કરો.

વારંવાર પૂછાતા પ્રશ્નો

શું આ સંદર્ભ અદ્યતન છે?
સંદર્ભ વ્યાપકપણે ઉપયોગમાં લેવાતા આદેશો અને વાક્યરચના આવરી લે છે જે આવૃત્તિઓમાં સ્થિર છે. નવીનતમ ઉમેરાઓ અથવા સંસ્કરણ-વિશિષ્ટ સુવિધાઓ માટે, સત્તાવાર દસ્તાવેજીકરણ તપાસો.
શું હું આનો ઑફલાઇન ઉપયોગ કરી શકું?
એકવાર લોડ થયા પછી, પૃષ્ઠ ઇન્ટરનેટ કનેક્શન વિના કાર્ય કરે છે. ઝડપી ઍક્સેસ માટે તેને બુકમાર્ક કરો — બધી સામગ્રી વધુ નેટવર્ક વિનંતીઓ વિના બ્રાઉઝરમાં રેન્ડર કરવામાં આવે છે.
શું આ વ્યાપક છે અથવા ફક્ત મૂળભૂત છે?
તે સૌથી સામાન્ય રીતે ઉપયોગમાં લેવાતા આદેશો અને પેટર્નને આવરી લે છે જે રોજિંદા કાર્યોના 90% નું સંચાલન કરે છે. વિશિષ્ટ અથવા અદ્યતન સુવિધાઓ માટે, સત્તાવાર દસ્તાવેજોની સલાહ લો.
શું હું ઉમેરાઓ સૂચવી શકું?
અમે નિયમિતપણે અમારા સંદર્ભોને અપડેટ કરીએ છીએ. જો તમને ગુમ થયેલ આદેશો જણાય અથવા સૂચનો હોય, તો અમને અમારા સંપર્ક પૃષ્ઠ દ્વારા જણાવો.