Ipilẹ Lainos Pàṣẹ Pé Kí on Lainos ati Windows Operating Systems

Yi kikọ jẹ wulo fun awon ti o fẹ lati to bẹrẹ pẹlu Linux ase. Here you will find the most common commands that are used in Linux.

Ti o ba yoo fẹ lati ṣiṣe Lainos pàṣẹ on ki o si fi Windows Cygwin. Cygwin is a Linux layer on top of Windows that allows you to use Linux commands in Windows.

Ti o ba ti o ba fi sori Cygwin on Windows ki o si awọn aiyipada ona nigbati o ba bẹrẹ awọn Cygwin ebute yoo jẹ:

C:\cygwin64\home\{username}

 

Ṣẹda titun bọtini akọsilẹ faili apẹẹrẹ

touch textfile.txt

 

Change liana

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

 

Fi ipo lọwọlọwọ (print working directory)

pwd

 

Jade kẹhin 100 ọrọ ti a faili

tail -100 {filename.extension}

 

Jade akọkọ 100 awọn ori ila ti a faili

head -100 {filename.extension}

 

Da a faili

cp {source} {destination}

 

Gbe faili kan

mv {source} {destination}

 

Ṣe a titun liana

mkdir {new directory name}

 

Pa faili

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}

 

To awọn awọn akoonu ti a faili

sort {filename to sort}

 

Yọ àdáwòkọ titẹ sii ni a faili

uniq {filename to remove duplicates}

 

Compress awọn faili

gzip {filename}

 

Compress liana

gzip -r {directory name}

 

Ka awọn nọmba ti awọn ori ila ati awọn ọrọ ni a text faili

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

 

Àpapọ akoonu ti a ọrọ faili

cat

 

sed stream editor (similar to find and replace)

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

 

Yi faili ati liana awọn igbanilaaye

chmod {options} {permissions} {filename}

 

Akojö to šẹšẹ ase lo

history

 

Laifọwọyi seto awọn iṣẹ-ṣiṣe

cron
crontab

 

Change faili awọn igbanilaaye

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

 

Yi recursive faili awọn igbanilaaye

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