Question: PART 1: Lets say we have program running in the background. How can you kill the process? Explain all the steps. How is it possible
PART 1:
Lets say we have program running in the background. How can you kill the process? Explain all the steps.
How is it possible to find out if there was a power shut down on your computer over the past 24 hours?
How can view only the last 5 lines of a file called name.txt?
How can you find out the time a directory or file has been created?
How can you find out if a user has accessed a file called name.txt?
Lets say we have a name.txt file consisting 1000 names, last names, and SSNs. Use a single Linux command to find the associated name and last name for a give SSN. What is the command?
What is the difference between find and whereis commands in Linux?
Assume a file called number.txt has the following content (below). Using a single command copy the second column into a file called number_col2.txt. Write the command.
1, A, Z
2, B, Z
3, C, Z
Lets assume we want to change the permission on a file to the following (below). How can we accomplish this using a single linux command?
-rwx------. 1 myfile 19,Aug 30 06: 31 number.txt
How do you know what Linux version you have?
Lets say we have a program called runme. How can you run this program on the background?
How do you use echo command to display the following message: *** This is a test ****.
What does su command do?
Run ifconfig command on your computer. How many NIC cards do you have? What are they called?
From your terminal run the following command and answer the questions below: curl https://ipinfo.info/html/my_ip_address.php
What do see if you type https://ipinfo.info/html/my_ip_address.php in your browser?
What is the purpose of curl command?
Write a shell script to separate your IP address from everythign else (you can use grep). Show the code and the results.
Linux command netstat displays information on the network configuration and activity of a Linux system, including network connections, routing tables, interface statistics, and multicast memberships. The following exercise explores how to use the netstat command to extract different types of information about the network configuration of a host. Try these commands:
Display information on the network interfaces (currently configured) by typing netstat -in
Display the content of the IP routing table by typing netstat -rn
Display information on TCP and UDP ports that are currently in use by typing netstat -a
Display the statistics of various networking protocols by typing netstat -s
After typing (netstat -s) record the values of ICMP messages received (number of times you pinged). From another terminal Ping your terminal exactly five times. Issues (netstat -s) again.
What do you observe?
Can the number of received ICMP messages be larger than the number of received IP packets? Explain your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
