Ubantu Flashcards
Cd
Back to home
Cd /documents
Go to documents folder
On the directory documents make folder
Mkdir test
Go to folder in folder
Documents$
Cd test/
Now you are in test folder
Make parent and child folder
Mkdir -p parent/child/child
Remove directory
rmdir
Remove child folder when you are in parent folder
rmdir test
Remove parwnt and child
rmdir -p parent/child/child
File type
File filename.type
Back one directoey
Cd..
Make file whit touch command
touch filename.type
Make mulitifile with touch
touch filename.type filename.type
remove file
rm filename.type
Force remove directory
rm -rf foldername
Copy file
Cp firstfoldername.type newfoldername.type
Copy file in other location
Cp filename.type /parent/parent/child/
Rename file
mv filename.type newname.type
Move and rename folder with mv command
mv filename.type parent/newname.type
Read 10 line of folder
head filename.type
Read 5 line of folder
head -5 filename.type
Read last 10 line file
tail filename.type
Print full file
cat filename.type
Put text to file
Echo texttest filename.type
Display all file text
Cat filename.type
Display more than one file with cat command
Cat filename.type filename.type
Put more than one file to the new file
Cat filename.type filename.type > new filename.type
Creat new file and put text on that as aa.e time
Cat > filename.type (enter)
Your text
…
Control +D
Copy file with cat
Cat filename.type > new filename.type
Display file content page by page
More filename.type