What is a command?
Basic description of command structures
What is a command?
A command is tool in the terminal that typically accepts options and arguments. The syntax is generally command [options] (arguments)
many commands can be run with or without arguments and most can be run without options in this instance we'll utilize ls
as our example.
ls
lists files and directories within the current directory it has many options and is a good practice command as it won't break anything. If you want to list the contents of a directory that you are not it use an argument that refers to the desired directory for example from the /home/theo
directory I can list the contents of Desktop by running ls Desktop/
To find out more about this command or any other utiliize man. From your terminal run man ls
Last updated