100 likes | 198 Views
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.
E N D
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. • The lines that follow show the output that results from the command
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
To see a full listing of who is logged in and what they are doing
Checking directories and permissions • To find out what your current directory is: • To find out the name of your home directory:
To get back to your home directory: • To change the current directory to the directory that you choose:
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:
Checking directories and permissions • List the contents of your home directory • List the contents of your root directory