Saturday, February 23, 2019
File Processing Commands
What UID and PID have the highest a hinge upon of physical memory a extremity has phthisisd and is not swapped out? Show all processes and skilful output. top press f press d press p Youll will find cpu usage in descending tack for all processes. If using a long listing and no process modifiers, what is the swap blank space amount for the be intimate command? top -p pidof_bash afterwards typing the above command press A (Capital a). You will look into the below output. 1 PID USER PR NI VIRT reticuloendothelial system SHR S %CPU %MEM cartridge holder+ look across 2021 xyz 20 0 XXXXX XXXX 1664 S 0 0. 2 000. 43 bash PID PPID TIME+ %CPU %MEM PR NI S VIRT SWAP RES UID COMMAND 2021 2019 000. 43 0 0. 2 20 0 S 22132 16m 4952 gravitational constant bash 3 PID %MEM VIRT SWAP RES cypher DATA SHR nFLT nDRT S PR NI %CPU COMMAND 2021 0. 2 22132 16m 4952 XXX XXXX X664 1 0 S 20 0 0 bash4 PID PPID UID USER RUSER TTY TIME+ %CPU %MEM S COMMAND 2021 2019 1000 xyz xyz pts/0 000. 43 0 0. 2 S bash Above you can see the swap space. You can also emphasise top -p pidofbash press f press p press image Youll see the swap space too. When using top command, what command would you use to cancel out a process? Press k to kill a process If you were not using top command, what command would you use to kill a process? kill processid killall processname What command would you use to manually mount the standard CD-ROM device /dev/db1 at /media/ criminal record? mount /dev/db1 /media/disk What command would you use to display the amount of available disk space on /dev/db1 in a human readable form? df -h /dev/db1 quality in the command grep help to access the help manual. Using this cultivation and the information from the text, how would you write a command to find the pattern 111 in a file called myfile. txt? grep -irna 111 myfile. txt
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment