Basiese Linux opdragte op Linux en 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.

As jy dan die standaard pad Cygwin installeer op Windows wanneer jy begin die Cygwin terminale sal wees:



Skep nuwe notepad lêer byvoorbeeld

touch textfile.txt


Verandering gids

cd {directory path\name}


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

ls -l -a

ls -al


Order files and directories by the time they were last modified

ls -t


Lys gids met pouse en blaai

ls -l | less


Wys die huidige ligging (print working directory)



Uittreksel laaste 100 woorde van 'n lêer

tail -100 {filename.extension}


Uitpak eerste 100 rye van 'n lêer

head -100 {filename.extension}


'N lêer

cp {source} {destination}


Skuif na 'n lêer

mv {source} {destination}


Maak 'n nuwe gids

mkdir {new directory name}


Skrap lêer

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}


Sorteer die inhoud van 'n lêer

sort {filename to sort}


Verwyder duplikaat inskrywings in 'n lêer

uniq {filename to remove duplicates}


Compress lêers

gzip {filename}


Compress gids

gzip -r {directory name}


Tel die aantal rye en woorde in 'n teks lêer

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


Display inhoud van 'n teks lêer



sed stream editor (similar to find and replace)

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


Verander lêer en gids regte

chmod {options} {permissions} {filename}


Lys onlangse opdragte gebruik



Outomaties skeduleer take



Verandering permissies

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


Verander rekursiewe permissies

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



Lewer kommentaar