Basic Linux iwu na Linux na Windows Operating Systems

This writing is useful for those that wish to get started with Linux commands. Here you will find the most common commands that are used in Linux.

If you would like to run Linux commands on Windows then install Cygwin. Cygwin is a Linux layer on top of Windows that allows you to use Linux commands in Windows.

Ọ bụrụ na ị wụnye Cygwin on Windows mgbe ahụ ndabara ụzọ mgbe ị na-amalite Cygwin ọnụ ga-:

C:\cygwin64\home\{username}

 

Ike ọhụrụ notepad faịlụ atụ

touch textfile.txt

 

Ịgbanwe ndekọ

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 ndekọ na kwụsịtụ ma scrolling

ls -l | less

 

Gosi ugbu a ebe (print working directory)

pwd

 

Wepụ ikpeazụ 100 okwu nke a faịlụ

tail -100 {filename.extension}

 

Wepụ mbụ 100 ahịrị nke a faịlụ

head -100 {filename.extension}

 

Detuo a faịlụ

cp {source} {destination}

 

Bugharịa a faịlụ

mv {source} {destination}

 

Eme ka a ọhụrụ ndekọ

mkdir {new directory name}

 

Hichapụ faịlụ

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}

 

Idozi ọdịnaya nke a faịlụ

sort {filename to sort}

 

Wepụ oyiri Ndenye na a faịlụ

uniq {filename to remove duplicates}

 

Mpikota onu faịlụ

gzip {filename}

 

Mpikota onu ndekọ

gzip -r {directory name}

 

Gụọ ọnụọgụ nke ndị e nyere ahịrị na okwu na a ederede faịlụ

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

 

Ngosipụta ọdịnaya nke a ederede faịlụ

cat

 

sed stream editor (similar to find and replace)

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

 

Gbanwee faịlụ na ndekọ ikikere

chmod {options} {permissions} {filename}

 

Dee na-adịbeghị anya iwu eji

history

 

Akpaghị aka ịtọọ oge aga-eme

cron
crontab

 

Ịgbanwe faịlụ ikikere

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

 

Gbanwee recursive faịlụ ikikere

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

 

 

Nkume a-aza