0% found this document useful (0 votes)
17 views14 pages

Linux

Uploaded by

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

Linux

Uploaded by

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

Screen capture 1

1. What is the name of default email application?


ANS- The default email application is Thunderbird
2. What application is the equivalent of Windows Word?
ANS- Libre office writer
3. What is the name of the default photo editor?
ANS- Shotwell
4. In the network settings, click on the Settings button. Locate and write your
IPv4
Ans- 192.168.47.129
5. Using the menu selections, determine the version of Gnome Desktop
Manager
Ans- 46
6. In your opinion, why would someone choose to try Ubuntu instead of
installing it?
Ans- to explore features and use Linux tools without affecting their current
system or data

Screen capture 2:

1. Where would you find application software such as Firefox?


Ans- /usr/bin
2. Where would you find your pictures?
Ans- /home/d-000936770/Pictures
3. Where would you find the optical drive or USB?
Ans- /mnt or /media
a. How do you log out of the current user account?
Ans- In the dropdown menu profile icon, click "Log Out"
b. How would do you restart or shut down your computer?
Ans- drop down menu click power icon and shut down
c. How do you lock your computer screen?
ans- drop down menu click power icon and lock
screen capture 3

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

Use the cd (change directory) command to navigate through the folders.


a. How would you use the cd command to move into the Documents folder of
your home folder?
Ans- cd /home/d-000936770/Documents

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

3. Use mkdir (make directory) to create a directory.


a. Open a Terminal Window. Navigate to your /home directory. List the contents.
You should see the directory you created earlier in this lab ([yourname]-temp).
b. Type mkdir test1 and confirm the directory has been created.
5. Use mv to move a directory.
a. Type mv [yourname]-temp test1. Note: mv can do more than move a
directory. It can also be used to rename it.
b. Navigate to test1/[yourname]-temp directory. Type mv test1 test2.
c. Type the following from the /home directory: ls test1 –R. This will
confirm whether you have a directory now named test2 in the directory,
[yourname]-temp.

6. Use gedit to create a text file.


a. Type gedit. In the editor window, type CMPH209 and the date.
b. Save the file as CMPH209 in the test2 directory which you already
created in your home directory.
7. cat is frequently used to view the content of a file and to redirect that
output.
a. Type the following command: cat /etc/passwd

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.

3. Type the following command: ls -l /etc > etc-list


a. Did the ls -l command display on the screen?
Ans- No, the ls -l command did not display anything on the screen
4. Display the contents of your home folder.
a. Do you see the etc-list file?
5. Display the contents of the file (etc-list) and describe what’s in it.

1. Enter the following: cat etc-list


a. What happened?
Ans- displays the entire content of the etc-list file on the screen.
2. Enter the following: cat etc-list | more
a. What happened?
b. Explain how the pipe (|) changed the output of the cat command.
Ans- This allows the content to be displayed one screenful at a time instead of all
at once.
3. Enter the following: cat etc-list | less

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

You might also like