1 / 9

Using Linux Commands

Using Linux Commands. Lab 2. The Shell Interface. The default prompt for a normal user is a dollar sign: $ preceded by user name , system name, and current directory, the date, the local computer name, or any string of characters: The prompt ---  the command you type ---  Enter.

dara-lamb
Download Presentation

Using Linux Commands

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using Linux Commands Lab 2

  2. The Shell Interface • The default prompt for a normal user is a dollar sign: • $ preceded by user name , system name, and current directory, the date, the local computer name, or any string of characters: • The prompt --- the command you type --- Enter. • The lines that follow show the output that results from the command

  3. Checking your login session • Login Identity includes: user name, group name, user ID, and group ID. • To find out information about your identity: • Linux keeps track of login session: when you logged in, how long you have been idle, and where you logged in from. •  -m option tells the who command to print information about the current user • -u says to add information about idle time and the process ID • -H asks that a header be printed

  4. To see a full listing of who is logged in and what they are doing

  5. Checking directories and permissions • To find out what your current directory is: • To find out the name of your home directory:

  6. To get back to your home directory: • To change the current directory to the directory that you choose:

  7. Checking directories and permissions • To list the contents of the current directory: • To list files across the page, separated by commas: • To list the contents of subdirectories:

  8. Checking directories and permissions • List the contents of your home directory • List the contents of your root directory

More Related