- Published on
Basic Terminal Command
- Authors
- Name
- Ridha Majid

GUI is a graphical operating system interface that uses icons and menus. Using GUI essentially is a good way to operate a computer. However, have you tried CLI?
CLI is a Command line interface. So basically, we interact with a computer using the Terminal.
Why and when do we use it?
I don’t really know when we need to use it. However, from my experience using Terminal Commands boosts productivity in some cases.
Terminal commands
Here are some basic terminal commands, you can try safely on your computer.
For safety reasons, I recommend you try using a dummy-files, In case we wouldn't know what happens next.
fwd
Find out the location that you currently access on the terminal.ls
List files and folders on the location that you currently access on a terminal.cd
Change directory, to move to another directory.cd Desktop
will allow you to move to the Desktop folder.cd ..
to move to the previous directory that you have accessed before.mkdir
Create a new directory using the terminal,mkdir my-project
will create a new folder name my-project.touch
Create a new file using the terminal,touch new-file.txt
will create a new folder name new-file.txt.rm
Remove, to remove a file on the directory,rm useless-file.txt
will remove a file name useless-file.txt. We recommend you add-i
afterrm
for the safety reasonrm -i useless-file.txt
. Because the file that you delete will not appear in the BIN folder.rm -r
to remove a directory,rm -r my-photos
will remove a file name my-photos. Again, we recommend you add-i
for the safety reasonrm -r -i my-photos.
I guess that's preety much it, what do you think ? let me know in the comment.
Source
Cover Post Unsplash