Linux
Linux
Screen capture 2:
a. As a user, which folder are you unable to freely access? (Hint: the folder has
an “x” on it.): Explain why:
b. Add the calculator and the terminal to the Favorites bar
Screen capture 4:
1. What key(s) can you use to move through the information shown, one page
at a time?
Ans- space
2. What key(s) can you use to move through the information shown, one line
at a time?
Ans- pg down
3. What key(s) can you use to exit the man output and return to the command
prompt?
Ans- q
b. How would you use the cd command to move back to your home folder?
Ans- we use cd to go back to your home folder
Use the ls command to display the list of folders in your home folder. Note: Your
folder should be named /home/d-000936770.
a. Does this match the folders you listed when using the desktop file explorer
earlier?
Ans- they matched
b. What option would you use with ls to get a long vertical listing with file and
folder details, file permissions, etc.?
Ans- to get a long vertical listing, we use ls -l /home/d-000936770
c. What is displayed?
Ans- user account information
d. What option can be used with the cat command to assign a number to each
line of text? (Hint: you can use the man page to figure this out.)
Ans- -n option with cat
8. more is used to list the content of a file one page at a time. © 2022,
Southern Alberta Institute of Technology 17
a. Reduce the size of the terminal window to ¼ of the screen.
b. Type the following command: more /etc/passwd
c. What is displayed?
d. How was this output different than when you used the cat command to
display the contents of the passwd file?
Ans- The cat command displays the entire content of the file at once, the
more command displays the content page by page
e. Type the following: more -20 /etc/passwd How did the results of the
command change?
1. Make sure you are working in your home folder.
2. Type the following command: ls –l /etc
a. What happened?
lists the contents of the /etc directory in long format, displaying details like
file permissions, number of links, owner, group, size, and timestamp.
1. In your opinion, why would a user choose to use a Linux distribution such as
Ubuntu instead of using Windows or MacOS?
Ans- A user might choose Ubuntu over Windows or macOS for several reasons.
Ubuntu is free and open-source, offering significant cost savings. It is highly
customizable and performs efficiently on older hardware, making it an excellent
choice for a wide range of devices. Ubuntu also has strong security features and is
favored by developers due to its powerful command-line tools and flexibility.
2. In what type of situation might you want to use redirection into a file?
Ans- Redirection into a file is useful in many scenarios. For instance, when running
a command that generates a lot of output, you might want to save this output to a
file for later analysis
3. How would you compare installing Ubuntu Linux to installing Windows or
MacOS?
Ans- Installing Ubuntu is usually easy. You download an ISO file, make a bootable
USB drive, and follow a simple installer. It gives options like dual-booting with
another OS. For Windows, you use a media creation tool, enter a product key, and
restart several times. macOS installation is more automatic and uses Internet
Recovery for newer Macs