Changes

Jump to: navigation, search

Tutorial 1: Using Your Matrix Server Account

1,013 bytes added, 14:10, 3 January 2021
Part 1: Using the Linux Shell
An '''argument''' is <u>separated</u> from a command (or from other arguments) by a '''SPACE''', '''multiple spaces''' or a '''TAB'''.
For example:* The '''ls''' command displays a listing of filenames in Perform the Following Steps:'''current''' directory* The '''ls /bin''' command displays a listing of filenames in the '''/bin''' directory (as opposed to your current directory)* The '''ls -l''' command displays a '''detailed''' listing of filenames in the '''current''' directory* The '''ls -l /bin''' command displays a '''detailed''' listing of files in the '''/bin''' directory
# Make certain that you are logged into your Matrix account.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold">pwd</span><br><br>The output from this Linux command basically shows your current location in the Matrix server. This represents a directory pathname to your home directory. We will discuss this later in a future tutorial.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold">ls</span><br><br>What do you notice?<br><br>If there were any files in your home directory, just their file names would be displayed.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold">cd /bin</span><br><br>
# Issue the following Linux command to confirm your current location: <span style="color:blue;font-weight:bold">pwd</span><br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold">ls</span><br><br>What do you notice?<br><br>
# Issue the following Linux command using an option: <span style="color:blue;font-weight:bold">ls -l</span><br><br>What do you notice?<br><br>The -l options with the ls command provides a detailed ("long") listing of files providing more information on a separate line for each file.<br><br>
# Issue the following Linux command to return to your home directory: <span style="color:blue;font-weight:bold">cd</span><br><br># Issue a Linux command that you have already learned to confirm that you have returned to your home directory</span><br><br>
'''Getting Help with Linux Commands'''
With the Linux OS containing over '''2500''' commands and utilities, it is good for a Linux user or sysadmin to learn about how to use commands “on-the-fly”.<br><br>The '''man''' command can provide information on how to use a command (i.e. '''usage''', '''arguments''', '''options''', '''examples''').<br>The commands are classified into sections or '''volumes'''. '''Perform the Following Steps:''' # Make certain that you are logged into your Matrix account.<br><br>
# Issue the following command: <span style="color:blue;font-weight:bold">man man</span><br>How many volume numbers are contained in the man pages (like '''executable commands/programs''', '''games''', or '''system administrator commands''')?<br><br>
# Press the letter <span style="color:blue;font-weight:bold">q</span> to exit the man command.<br><br>
13,420
edits

Navigation menu