ప్రాథమిక Linux Linux మరియు Windows ఆపరేటింగ్ సిస్టమ్స్ ఆదేశాలను

వాటిని ఆ Linux కమాండ్లు ప్రారంభించడానికి ఈ రచన ఉపయోగపడుతుంది. Here you will find the most common commands that are used in Linux.

మీరు Windows న Linux ఆదేశాలను అమలు కావాలనుకుంటే అప్పుడు ఇన్స్టాల్ Cygwin. Cygwin is a Linux layer on top of Windows that allows you to use Linux commands in Windows.

మీరు ప్రారంభించడానికి మీరు Windows లో అప్పుడు డిఫాల్ట్ మార్గం cygwin ఇన్స్టాల్ చేస్తే cygwin టెర్మినల్ ఉంటుంది:

C:\cygwin64\home\{username}

 

కొత్త ప్యాడ్ ఫైలు ఉదాహరణకు సృష్టించు

touch textfile.txt

 

డైరెక్టరీ మార్చండి

cd {directory path\name}

 

List directory content in long format ( -l ) including hidden files and directories ( -a )

ls -l -a

ls -al

 

Order files and directories by the time they were last modified

ls -t

 

List directory with pause and scrolling

ls -l | less

 

ప్రస్తుత స్థానాన్ని చూపు (print working directory)

pwd

 

గత సంగ్రహం 100 ఒక ఫైల్ యొక్క పదాలు

tail -100 {filename.extension}

 

మొదటి సంగ్రహం 100 ఒక ఫైల్ యొక్క వరుసలు

head -100 {filename.extension}

 

ఒక ఫైల్ కాపీ

cp {source} {destination}

 

ఫైల్ను తరలించండి

mv {source} {destination}

 

ఒక కొత్త డైరెక్టరీ చేయండి

mkdir {new directory name}

 

ఫైలు తొలగించు

rm {filename}

 

Delete an empty directory

rmdir {directory to remove}
rm -d{directory to remove}

 

Delete directory and its contents

rm -r {directory to remove}
rm -R{directory to remove}

 

ఒక ఫైల్ యొక్క కంటెంట్లను క్రమీకరించు

sort {filename to sort}

 

ఒక ఫైల్ లో నకిలీ ప్రవేశాలు తొలగించు

uniq {filename to remove duplicates}

 

ఫైళ్లు కుదించుము

gzip {filename}

 

డైరెక్టరీ కుదించుము

gzip -r {directory name}

 

ఒక టెక్స్ట్ ఫైల్ లో వరుసలు మరియు పదాల సంఖ్య కౌంట్

wc {filename}

 

Search text within files for matching string pattern (case sensitive)

grep 'word' {filename}

 

Search text within files for matching string pattern (case insensitive)

grep -i 'word' {filename}

 

Search with a directory

grep -R Arctic /home/ccuser/workspace/geography

 

ఒక టెక్స్ట్ ఫైలు యొక్క ప్రదర్శన కంటెంట్

cat

 

sed stream editor (similar to find and replace)

sed 's/snow/rain/' forests.txt

 

ఫైలు మరియు డైరెక్టరీ అనుమతులు మార్చండి

chmod {options} {permissions} {filename}

 

ఉపయోగించిన ఇటీవలి ఆదేశాలను జాబితా

history

 

స్వయంచాలకంగా పనులు షెడ్యూల్

cron
crontab

 

మార్పు ఫైలు అనుమతులు

chmod {permission number} {some file or directory}
chmod 777 /storage

 

పునరావృత ఫైలు అనుమతులు మార్చండి

chmod -R {permission number} {some file or directory}