- 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.
fwdFind out the location that you currently access on the terminal.lsList files and folders on the location that you currently access on a terminal.cdChange directory, to move to another directory.cd Desktopwill allow you to move to the Desktop folder.cd ..to move to the previous directory that you have accessed before.mkdirCreate a new directory using the terminal,mkdir my-projectwill create a new folder name my-project.touchCreate a new file using the terminal,touch new-file.txtwill create a new folder name new-file.txt.rmRemove, to remove a file on the directory,rm useless-file.txtwill remove a file name useless-file.txt. We recommend you add-iafterrmfor the safety reasonrm -i useless-file.txt. Because the file that you delete will not appear in the BIN folder.rm -rto remove a directory,rm -r my-photoswill remove a file name my-photos. Again, we recommend you add-ifor 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