0% found this document useful (0 votes)
6 views

LINUX Section1-Lab

Uploaded by

ptvjay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

LINUX Section1-Lab

Uploaded by

ptvjay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Section 1 Lab

LPIC-1, Exam 1 (101-500)


By Christine Bresnahan
Recommended Linux Distributions for this exercise:
 CentOS version 7
 Ubuntu Desktop 18.04LTS

Note: For a successful lab session, it is assumed you are using the recommended Linux distribution(s) and
the recommended version, and that your Linux systems are booted. In addition, it is assumed that you can log
into the system as a standard user as well as either the root account or a user with super user privileges.

Follow the following actions to explore concepts and commands covered in this section (but please feel free
to explore as much as you want):
1. Log into your CentOS distro graphical user interface (GUI), using the username and password you
created when you installed the system.
2. Access the terminal emulator app on this system.
3. Jump to the TTY2 terminal, by pressing the appropriate keys. Do not log in here.
4. Go to the TTY3 terminal, by pressing the appropriate keys. Do not log in here.
5. Return to the GUI, by pressing the appropriate keys.
6. In the terminal emulator app, type exit and press the Enter key to close out the terminal emulator app.

7. Log into your Ubuntu distro graphical user interface (GUI), using the username and password you
created when you installed the system.
8. Access the terminal emulator app on this system.
9. Jump to the TTY2 terminal, by pressing the appropriate keys. Do not log in here.
10. Go to the TTY3 terminal, by pressing the appropriate keys. Do not log in here.
11. Return to the GUI, by pressing the appropriate keys.
12. In the terminal emulator app, type exit and press the Enter key to close out the terminal emulator app.
13. Jump back to the TTY2 terminal, by pressing the appropriate keys, and log in using the username and
password you created when you installed the system.
14. Once you have received a command-line prompt, type tty and press Enter to determine which terminal
you are logged into.
15. Review your username, by typing whoami and pressing Enter.
16. Look at your account’s home directory, which should be your current working directory, by typing pwd
and pressing Enter.
17. Look at the files and directories (if any) that are located in your current working directory, by typing ls
and pressing the Enter key.
18. Type logout and press Enter to log out of the TTY2 terminal

19. Log back in to the TTY2 terminal, using the username and password you created when you installed the
system.
20. View the directories at the root of the virtual directory structure, by typing ls / and pressing Enter.
21. Look at one particular directory name (but not its contents) by typing ls -d /etc and pressing Enter.
22. Look at that directory’s contents by typing ls /etc and pressing Enter. The contents may go flying by on
your screen, so that you cannot view them all in a single screen (and that’s okay.)

23. Assuming you are still logged into the TTY2 terminal on Ubuntu, type cd /etc and press Enter to
change your current working directory to the /etc directory.
24. Verify you are in the /etc directory, by typing pwd and pressing Enter.
25. Use another absolute directory move by typing cd /var/log and pressing Enter.
26. Confirm you are in the /var/log directory using the appropriate command.
27. Return to the /etc directory by using a cd command shortcut. Type cd - and press Enter.
28. Confirm you are in the /etc directory by using the appropriate command.
29. Return to your home directory by typing cd and pressing Enter.
30. Now go back to the /var/log directory using the cd command and arguments of your choice.
31. Confirm you are in the /var/log directory using the appropriate command.
32. Return to your home directory using the command of your choice.
33. Logout of the terminal, by typing exit and pressing Enter.

You might also like