TechLife Australia

Navigating Linux

-

A few simple commands for moving around the Linux directory structure:

cd Change directory (very much as in the Windows command console). This can be followed by a directory name (eg cd users) which will take you to the subdirecto­ry of the current directory by that name. You can also type in the full path (eg cd /mnt/c/) to go straight to a given directory. Typing ‘cd /’ (without the quotes) will take you back to root, while typing ‘cd ..’ will take you up one directory level. Remember that Linux uses forward slashes (/) rather than the backslashe­s (\) of Windows/DOS. ls List. Lists the contents of the current directory. mkdir Make directory. Create a new directory by typing the name of the directory after it (eg. mkdir backup). rmdir will delete a directory.

Newspapers in English

Newspapers from Australia