Ask a question from expert

Ask now

Assignment on Linux Environment

15 Pages995 Words106 Views
   

Added on  2021-06-16

Assignment on Linux Environment

   Added on 2021-06-16

BookmarkShareRelated Documents
[After your introduction and greeting]For this presentation we are going to compare the functionalities of “lsof” and“nmon” tools in the kali Linux environment. This command is used in order to list all theinformation about all the opened files used by the various processes in the OS. In case ofLinux OS, everything is considered as a file whether it is a pipe, directories, socket, devices,and so on. lsof tool The tool lsof is used to get the list of the opened files used by the different processesin Linux environment. In order get this tool in Linux environment, we need to use the sudo apt-get installlsof.Execution of simple lsof command shows a long list of opened files by the processes or usersof the system. some of these files are extracted for better understanding. This listing displaysthe related data under the columns like PID, USER, FD, TYPE as depicted in the followingscreen,
Assignment on Linux Environment_1
As there are multiple FDs (File descriptors for the open files) following are the abbreviationsthat are used for descriptors. FD –> File descriptor:cwd: current working directoryrtd: root directorytxt: program text (code and data)mem: memory-mapped fileAgain, the TYPE of the files are provided in the listing, which are, CHR – Character special file.
Assignment on Linux Environment_2
DIR – DirectoryFIFO – First in First OutREG – Regular fileFinding out the files opened by a specific user: While managing the servers we can also find out the files that are opened by some specificuser, The command for this is lsof –u <username>here we have used the user “colord” and tried to find out the files opened by in operatingsystem.lsof –u colord following is the screenshot for the execution of this command,
Assignment on Linux Environment_3
Using the lsof tool, we can also find out the list of IPv4 and IPv6 using the commands, lsof –i 4lsof –i 6 following is the screenshot of the execution of the command in the Kali Linux environment.Finding processes with PIDThe lsof is also useful in case of finding out the files used by some specific process with aspecific PID, following is the list of all processes that has the PID 200; Used command: lsof -p 200
Assignment on Linux Environment_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
(Solution) Assignment on Operating System
|11
|1633
|88

Operating system Sample Assignment
|13
|1725
|282

System Management: Monitoring Tools Atop and LOSF
|11
|769
|206

System Administration - Assignment PDF
|13
|1578
|99

System Administration: Directory Services and User/Group Management
|4
|705
|283

Basic Linux Security | Assignment
|7
|568
|19