Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:basic_commands [2011/05/16 00:59] – [As Root] Guy | wiki:basic_commands [2022/09/21 17:10] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Basic Commands for New Users ====== | ||
+ | |||
+ | ==== List the Contents of a Directory ==== | ||
+ | |||
+ | To list the contents of a directory, open the terminal and type | ||
+ | |||
+ | < | ||
+ | |||
+ | ls stands for list. | ||
+ | |||
+ | For more details, use | ||
+ | |||
+ | < | ||
+ | |||
+ | -l stands for long. | ||
+ | |||
+ | To view all files, including hidden files use | ||
+ | |||
+ | < | ||
+ | |||
+ | In Linux, hidden filenames start with a " | ||
+ | |||
+ | You can combine -l and -a, like this | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Change Directory ==== | ||
+ | |||
+ | To change to a directory within the one you are in, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change to a directory in the directory in one you are in, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change to the root directory, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change to a directory in root, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change to the home directory, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change to a directory within the home directory, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change up to the directory containing the one you are in, use | ||
+ | |||
+ | < | ||
+ | |||
+ | To change up two levels, use | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Display the Contents of a File ==== | ||
+ | |||
+ | To display the contents of a file, use | ||
+ | |||
+ | < | ||
+ | |||
+ | This may be used to read text files. | ||
+ | |||
+ | ==== As Root or Administrator ==== | ||
+ | |||
+ | To have root or administrator permissions, | ||
+ | |||
+ | < | ||
+ | |||
+ | before commands. | ||
+ | |||
+ | For example, to start the text editor as root or administrator, | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Stop an Application ==== | ||
+ | |||
+ | To stop an application, | ||
+ | |||
+ | < | ||