Workshop
The Workshop contains quiz questions and exercises to help reinforce what you've learned in this hour.
Q&A
-
I'm still really confused. Where can I get more information about Linux basics?
-
Learning how to use Linux takes more than one hour of study. Here are some resources for you to continue studying the basics:
http://www.geek-girl.com/Unixhelp/ for basic Unix commands
UNIX Made Easy: The Basics and Beyond!, John Muster, McGraw-Hill 1996. An excellent tutorial for learning Unix.
http://www.linuxnewbie.org for general help for Linux newbies.
-
Q I don't see my floppy drive or CD-ROM drive in the root directory. Where are they?
-
Linux treats different drives and other devices differently than MS-DOS or Windows. Other drive devices, including floppy drives, ZIP drives, tape drives, and CD-ROMs are usually found in the /mnt directory. You will learn more in the next hour.
Quiz
-
What is X?
-
In which environment do you use the command line?
-
What is the first thing that happens when you turn on your computer?
-
What is the login program called, and what starts it?
-
Which login sequence is runlevel 3, and which is runlevel 5?
-
What is a virtual terminal?
-
When is it okay to log in as root?
-
How do you leave superuser status?
Quiz Answers
-
What is X?
The Linux (actually also the Unix) graphical interface.
-
In which environment do you use the command line?
The shell environment.
-
What is the first thing that happens when you turn on your computer?
The BIOS copies the boot loader into memory.
-
What is the login program called, and what starts it?
-
Which login sequence is runlevel 3, and which is runlevel 5?
Runlevel 3 starts the text login, and runlevel 5 starts the graphical login.
-
What is a virtual terminal?
A virtual terminal is like another monitor attached to your system. It enables you to start a completely different session with a new login.
-
When is it okay to log in as root?
You should log in as root only when you need to, in order to perform an administrative task.
-
How do you leave superuser status?
Type exit at the command prompt.
The kernel starts the getty program, which makes it possible to login.
Exercises
-
Log into your Linux system using the account you created during installation.
-
Enter the command pwd. What is the output?
-
If you know the root password, assume superuser status and then exit.
-
Type ls /etc. What command would you use to display only one screenful of information at a time?
-
Type pwd again. What directory are you in? How would you go to the /etc directory?
-
Copy the termcap file from the /etc directory to your home directory.
-
Make a new directory in your home directory called "play." Put the termcap file in the play directory.
-
Rename the termcap file to this_file. Hint: use the mv command.
-
Delete this_file. Remove the play directory.
Exercise Answers
-
Log into your Linux system using the account you created during installation.
Enter your user name and press Enter, then enter your password and press Enter.
-
Enter the command pwd. What is the output?
Normally, you log in to your home directory. The output should be something like /home/your_user_name.
-
If you know the root password, assume superuser status and then exit.
Type su, then enter the root password at the prompt. Type exit to exit back to your own user identity.
-
Type ls /etc. What command would you use to display only one screenful of information at a time?
The /etc directory is probably too long for the entire output to appear in one screen. Type ls /etc | more to display one screenful of output at a time.
-
Type pwd again. What directory are you in? How would you go to the /etc directory?
You are still in your home directory. To go to the /etc directory, type cd /etc.
-
Copy the termcap file from the /etc directory to your home directory.
cp /etc/termcap /home/username
-
Make a new directory in your home directory called "play." Put the termcap file in the play directory.
mkdir play cp termcap play
-
Rename the termcap file to this_file. Hint: use the mv command.
cd play mv termcap this_file
-
Delete this_file. Remove the play directory.
rm this_file cd .. rmdir play