2022 Ct505ni LB6 210495981 C10
2022 Ct505ni LB6 210495981 C10
2022 Ct505ni LB6 210495981 C10
Assessment Type
Logbook 1
Semester
2022 Spring/Autumn
I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a mark of zero will be awarded
List of Contents
Introduction: .................................................................................................................... 1
Conclusion: ..................................................................................................................... 8
List of Figures
Figure 1: Using the script command ................................................................................ 2
Figure 2: Using the whoami command in terminal .......................................................... 2
Figure 3: Using the who command in the linux ................................................................ 3
Figure 4: Using the finger command in the terminal ........................................................ 3
Figure 5: Using the date function in the terminal ............................................................. 4
Figure 6: Listing the files using ls command .................................................................... 4
Figure 7:Listing all the files along with the hidden files .................................................... 4
Figure 8: Lists all the files and directories along with hidden files with extra information 5
Figure 9: Using the /etc/passwd command in the terminal .............................................. 6
Figure 10: Creating a new file ......................................................................................... 6
Figure 11: Creating a multi-line file .................................................................................. 7
Figure 12: Checking the contents of file1 ........................................................................ 7
Figure 13:Checking the contents of test2 file .................................................................. 8
Figure 14: Saving and ending the script .......................................................................... 8
Network Operating System CT505NI
Introduction:
When operating Linux, you need to use a shell – a program that gives you access
to the operating system’s services. Most Linux distributions use a graphical user
interface (GUI), making them beginner-friendly. When operating Linux, you need to
use a shell – a program that gives you access to the operating system’s services.
Most Linux distributions use a graphical user interface (GUI), making them
beginner-friendly.
However, utilizing the command-line interface (CLI) because it’s quicker and offers
more control. Tasks that require multiple steps on the GUI can be done in a matter
of seconds by entering commands into the CLI
1
Smriti Swar
Network Operating System CT505NI
2
Smriti Swar
Network Operating System CT505NI
wants to know the number of users currently logged onto the system and the information
about them.
3
Smriti Swar
Network Operating System CT505NI
• ls -a commad: This command list all the available files along with the hidden files
in the operating system. Hidden files are those files that have ‘.’ in front of their
name.
Figure 7:Listing all the files along with the hidden files
4
Smriti Swar
Network Operating System CT505NI
Figure 8: Lists all the files and directories along with hidden files with extra information
The differences between the ls, ls -a and the ls -a -l command is that ls command only
lists the files and directories available in the operating system wheareas the ls -a
command shows the available files along with the hidden files and the ls -a -l command
shows all the files with extra information.
5
Smriti Swar
Network Operating System CT505NI
6
Smriti Swar
Network Operating System CT505NI
7
Smriti Swar
Network Operating System CT505NI
Conclusion:
The main aim of this logbook was to teach us the different commands used in the linux
operating system, and we definitely learned about the various basic commands of the
Linux regarding the file system. It helped us to apply the theoretical knowledge practically.
The aims and objectives mentioned earlier were fulfilled as we reached the end of our
workshop task.
8
Smriti Swar
Network Operating System CT505NI
Appendix
smriti@LAPTOP-KNRVKTHE:~$ cat tutorial6
smriti@LAPTOP-KNRVKTHE:~$ whoami
smriti
smriti@LAPTOP-KNRVKTHE:~$ who
No mail.
No Plan.
smriti@LAPTOP-KNRVKTHE:~$ date
smriti@LAPTOP-KNRVKTHE:~$ ls
A1script tutorial6
smriti@LAPTOP-KNRVKTHE:~$ ls -a
smriti@LAPTOP-KNRVKTHE:~$ ls -a -l
total 12
9
Smriti Swar
Network Operating System CT505NI
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
10
Smriti Swar
Network Operating System CT505NI
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:100:102:systemd Network
Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-timesync:x:102:104:systemd Time
Synchronization,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:106::/nonexistent:/usr/sbin/nologin
syslog:x:104:110::/home/syslog:/usr/sbin/nologin
_apt:x:105:65534::/nonexistent:/usr/sbin/nologin
uuidd:x:107:112::/run/uuidd:/usr/sbin/nologin
tcpdump:x:108:113::/nonexistent:/usr/sbin/nologin
sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
landscape:x:110:115::/var/lib/landscape:/usr/sbin/nologin
pollinate:x:111:1::/var/cache/pollinate:/bin/false
smriti:x:1000:1000:,,,:/home/smriti:/bin/bash
11
Smriti Swar
Network Operating System CT505NI
smriti@LAPTOP-KNRVKTHE:~$ exit
smriti@LAPTOP-KNRVKTHE:~$ ls
smriti@LAPTOP-KNRVKTHE:~$ ls
smriti@LAPTOP-KNRVKTHE:~$ exit
12
Smriti Swar
Network Operating System CT505NI
smriti@LAPTOP-KNRVKTHE:~$ exit
smriti@LAPTOP-KNRVKTHE:~$
13
Smriti Swar