Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:basic_commands [2011/05/16 03:35] – [List the Contents of a Directory] Guywiki:basic_commands [2011/05/16 09:40] (current) – [Stop an Application] Guy
Line 25: Line 25:
 <code>ls -al</code> <code>ls -al</code>
  
 +==== Change Directory ====
  
 +To change to a directory within the one you are in, use
  
 +<code>cd directory-name</code>
 +
 +To change to a directory in the directory in one you are in, use
 +
 +<code>cd directory-name/directory-name</code>
 +
 +To change to the root directory, use
 +
 +<code>cd /</code>
 +
 +To change to a directory in root, use
 +
 +<code>cd /directory-name</code>
 +
 +To change to the home directory, use
 +
 +<code>cd ~/</code>
 +
 +To change to a directory within the home directory, use
 +
 +<code>cd ~/directory-name</code>
 +
 +To change up to the directory containing the one you are in, use
 +
 +<code>cd ..</code>
 +
 +To change up two levels, use
 +
 +<code>cd ../..</code>
 +
 +==== Display the Contents of a File ====
 +
 +To display the contents of a file, use
 +
 +<code>cat filename</code>
 +
 +This may be used to read text files.
 +
 +==== As Root or Administrator ====
 +
 +To have root or administrator permissions, use
 +
 +<code>sudo</code>
 +
 +before commands.
 +
 +For example, to start the text editor as root or administrator, use
 +
 +<code>sudo editor</code>
 +
 +==== Stop an Application ====
 +
 +To stop an application, use
 +
 +<code>killall app-name</code>
  
Print/export
QR Code
QR Code wiki:basic_commands (generated for current page)