In order to correctly use Linux (or Bash) commands you have to be able to navigate through the directory. In Windows, MacOS or even Linux, you can navigate with your cursor and double-click to get in a directory, but this is the classic way, let see how navigate through UNIX with the ls and cd commands.
ls [option] <path>
cd [option] <path>
ls: is giving information about the contents of files or directories but also optional information. Without argument, it will alphabetically list all elements in the current directory.
||print all files, even the hided files (with a '.' at the begininning)
||print all files, even the hided files (with a '.' at the begininning) except the '.' and '..' files
||show more information like author, authorizations and size about files.
||print only one file/directory by line
You can find many more options but for a basic usage it if not used every day.
: changes the shell's current working directory.
) option available.
Wrote by Raspaud Alexandre at
May 18 2018, contact email@example.com.