Goals: Introduction to using a Terminal
What does a prompt look like?
General syntax of shell command.
Commands/options are case sensitive.
Getting Help:
Man pages (
man
)Options:
<command> --help
Login
Open up Chrome
Navigate to: MedicineBow OnDemand
Type in your provided username and password. Usually this will be your UWYO username and password, unless you are using an assigned training account.
Authenticate using your preferred 2 factor method (expandable directions below):
Start MedicineBow Shell Access
|
|
|
The Command-Line Prompt
Syntax of a Shell Command
Case Sensitive
# Lists what is in the current location. [arcc-t05@blog1 ~]$ ls Desktop Documents Downloads # Throws an error. [arcc-t05@blog1 ~]$ LS -bash: LS: command not found Filename ≠ FiLeNaMe ≠ FILENAME
Filename ≠ FiLeNaMe ≠ FILENAME
Getting Help: man
[arcc-t05@blog1 ~]$ man ls LS(1) User Commands LS(1) NAME ls - list directory contents SYNOPSIS ls [OPTION]... [FILE]... DESCRIPTION List information about the FILEs (the current directory by default). Sort entries alpha‐ betically if none of -cftuvSUX nor --sort is specified. Mandatory arguments to long options are mandatory for short options too. -a, --all do not ignore entries starting with . -A, --almost-all do not list implied . and .. ... Manual page ls(1) line 1 (press h for help or q to quit)
Getting Help: <command --help>
[arcc-t05@blog1 ~]$ ls --help Usage: ls [OPTION]... [FILE]... List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified. Mandatory arguments to long options are mandatory for short options too. -a, --all do not ignore entries starting with . -A, --almost-all do not list implied . and .. --author with -l, print the author of each file -b, --escape print C-style escapes for nongraphic characters --block-size=SIZE with -l, scale sizes by SIZE when printing them; e.g., '--block-size=M'; see SIZE format below -B, --ignore-backups do not list implied entries ending with ~
Getting Help: Options
Typically, options can have a:
short-name: “
-a
”:Single letter following a single “
-
”
long-name: “
--all
”:More descriptive word after two dashes “
--
”
Short options can be grouped:
“
ls -a –l
” can be shortened to “ls –al
”
Single vs Multiple Lines
[arcc-t05@blog1 ~]$ ls -al ~ [arcc-t05@blog1 ~]$ ls \ > -al \ > ~
Exercises
Questions:
Is there a difference between running
ls
versusls -al
?How can you find out what the
–al
options do?What does the
pwd
command do?From the command line, what happens if you press the up/down arrow keys?
Answers(1)
1: Is there a difference between running ls
versus ls -al
?
Answers(2)
2: How would you find out what the –al
options do?
Answers(3, 4)
3: What does the pwd
command do?
4: From the command line, what happens if you press the up/down arrow keys?
Previous | Workshop Home | Next |