Basic Commands Ubuntu

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Basic commands ubuntu

Navigate the filesystem

 Pwd: what directory am I in


 Cd: change dir
 Ls: contents of dir

Manipulate files/directories

 Cp: copy files and dirs


 Mv: move/rename files and dirs
 Rm: remove files and dirs
 Mkdir: create dirs
 Touch: create files

Redirection

 Cat: concatenate files


 Sort: sort records
 Less/more: natigating throough file
 Uniq: remove duplicates from sorted list
 Grep: match on text patterns

Misc

 Echo: print text


 *: wildcart referring to all
 ?: wildcard referring to a single character
 >, <, >>: redirecting (save, read, append)
 |: piping output from the left as input from the right

https://canvas.vu.nl/courses/55550/pages/1-dot-3-tutorial-1-linux-and-shell?
module_item_id=601481

My directories

 /home/muslume
 /tryout
 helloworld
 /homework

You might also like