Table Of Contents
Today, most computer users use a GUI or a Graphical User Interface to interact with their computers. Before GUIs existed, users would use a terminal to interact with computers. In contrast to a GUI, a terminal is text-based. A shell runs on the terminal, which will accept user commands.
One of the most common commands is ls. It lists files and directories.
ls # Lists the current files and directories in current directoryOf course, it is not very useful to list files and directories without knowing what the current directory is. The command pwd can tell you where you currently are.
pwdTo change the current directory, one uses the cd command:
cd ~ # ~ expands to the home directory of the current userTo remove a file or folder, you can run:
rm -rf <folder or filename> # Replace the brackets and text with the actual folder and filename