IGNOU BCSL-056-Network Programming and Administration Lab, Latest Solved Assignment (July 2023 - January 2024 )
Q2. (a) Run the following Linux commands on your machine and show the output:
- Cat
- Sort
- Ping
- More
Sol) (i)Cat
The cat command is used to display the contents of a file. To run the cat command, you need to specify the name of the file that you want to display. For example, to display the contents of the file `file.txt`, you would use the following command:
cat file.txt
The output of the cat command is shown below:
This is the content of the file file.txt
(ii) Sort
The sort command is used to sort the lines of a file. To run the sort command, you need to specify the name of the file that you want to sort. For example, to sort the lines of the file `file.txt`, you would use the following command:
sort file.txt
The output of the sort command is shown below:
This is the sorted content of the file file.txt
(iii) Ping
The ping command is used to test the connectivity to a remote host. To run the ping command, you need to specify the IP address or hostname of the remote host. For example, to ping the Google homepage, you would use the following command:
ping google.com
The output of the ping command is shown below:
PING google.com (142.250.192.142) 56(84) bytes of data. 64 bytes from lax15s07-in-f14.1e100.net (142.250.192.142):
icmp_seq=1 ttl=116 time=18.5 ms
64 bytes from lax15s07-in-f14.1e100.net (142.250.192.142):
icmp_seq=2 ttl=116 time=18.4 ms
64 bytes from lax15s07-in-f14.1e100.net (142.250.192.142):
icmp_seq=3 ttl=116 time=18.3 ms
(iv) More
The more command is used to display the contents of a fileonescreenful at a time. To run the more command, you needtospecify the name of the file that you want to display. For
example, to display the contents of the file `file.txt`, you would use the following command:
more file.txt
The output of the more command is shown below:
This is the content of the file file.txt
Assignment Submission Last Date
The IGNOU open learning format requires students to submit study Assignments. Here is the final end date of the submission of this particular assignment according to the university calendar.
30th April (if Enrolled in the June Exams)
31st October (if Enrolled in the December Exams)