IA212-Assignment 2
IA212-Assignment 2
1. Log on and open the terminal. There are multiple ways. Pick what works best for
you.
a. Open in applications and find terminal
b. Ctrl + Alt + T
c. Right click on desktop and open terminal
2. After the terminal emulator window is open, you should see a command line prompt
ending in a dollar sign ($).
5. This next command won’t work. Type Date and press Enter.
a. You should see a message that says “command not found” or something
similar. This is because all command line commands are case sensitive.
b. In other words, date does not equal Date!
1. ***At the CLI prompt, type man man and press Enter.
a. The manual command is the help page for commands. In this case we are asking
for the manual for the manual command.
2. Within the help for the man pages, read through the Description; Manual Sections;
and all the Options.
a. Use either the arrow keys, the Enter key, or the space bar to move through the
displayed text.
1|P a g e
IA212 Command Line Basics
2. ____________________________
3. _____________________________
4. _____________________________
5. _____________________________
6. _____________________________
7. _____________________________
8. _____________________________
9. _____________________________
2|P a g e
IA212 Command Line Basics
6. ***See what various sections there may be for the uname command by typing man -K
uname and pressing Enter.
a. There should be several results listed! The -k stands for "keyword." The whatis
database allows you to search through it for certain man pages keywords to find
helpful information and learn which sections the information is in, using the -k
option.
8. ***You can find the various files with the name “uname” that may be associated with the
uname command, including the man pages.
a. Try this out: type whereis uname and press Enter. The output is not very easy
to read, because it’s not formatted nicely.
b. The whereis command searches particular directories to find files associated with
the name you give it.
9. ***You get a lot more system information, including the Linux kernel's version number,
by typing uname -a and pressing Enter.
12. Press Enter a few times to read through the license, and then type q to quit and return
to the prompt.
3|P a g e
IA212 Command Line Basics
3. To see all your command history (commands you have previously entered in the
bash shell), type history and press Enter.
a. You should see several commands listed along with a number by each one.
4. ***Pick one of the commands from the history list and note its number.
a. Type !# (where # is the number of the command in your history) and press
Enter.
i. The command should display and execute!
b. This is another method, besides the up arrow key, you can use to recall
previous commands.
4|P a g e