Monday, August 31, 2020

Top Process Related Commands In Linux Distributions


Commands in Linux are just the keys to explore and close the Linux. As you can do things manually by simple clicking over the programs just like windows to open an applications. But if you don't have any idea about commands of Linux and definitely you also don't know about the Linux terminal. You cannot explore Linux deeply. Because terminal is the brain of the Linux and you can do everything by using Linux terminal in any Linux distribution. So, if you wanna work over the Linux distro then you should know about the commands as well. In this blog you will exactly get the content about Linux processes commands which are are given below.

ps

The "ps" command is used in Linux to display your currently active processes over the Linux based system. It will give you all the detail of the processes which are active on the system.

ps aux|grep

The "ps aux|grep" command is used in Linux distributions to find all the process id of particular process like if you wanna know about all the process ids related to telnet process then you just have to type a simple command like "ps aux|grep 'telnet'". This command will give you the details about telnet processes.

pmap

The "pmap" command in Linux operating system will display the map of processes running over the memory in Linux based system.

top

The "top" command is used in Linux operating system to display all the running processes over the system's background. It will display all the processes with process id (pid) by which you can easily kill/end the process.

Kill pid

Basically the kill command is used to kill or end the process or processes by simply giving the process id to the kill command and it will end the process or processes. Just type kill and gave the particular process id or different process ids by putting the space in between all of them. kill 456 567 5673 etc.

killall proc

The "killall proc" is the command used in Linux operating system to kill all the processes named proc in the system. Killall command just require a parameter as name which is common in some of the processes in the system.

bg

The "bg" is the command used in Linux distributions to resume suspended jobs without bringing them to foreground.

fg

The "fg" command is used in Linux operating system to brings the most recent job to foreground. The fg command also requires parameters to do some actions like "fg n" n is as a parameter to fg command that brings job n to the foreground.Related links
  1. Nsa Hacker Tools
  2. Hacker Tools Online
  3. Pentest Tools Subdomain
  4. Hacking Tools For Pc
  5. Tools For Hacker
  6. Hacker Tools Software
  7. Hacking Tools
  8. Hacker Tools Apk
  9. Hacking Tools Hardware
  10. Hack Tools For Ubuntu
  11. Ethical Hacker Tools
  12. Pentest Box Tools Download
  13. How To Install Pentest Tools In Ubuntu
  14. Top Pentest Tools
  15. Hack Tools For Ubuntu
  16. Hack Tools For Windows
  17. New Hacker Tools
  18. Hacking Tools Name
  19. Hacking Tools 2020
  20. Hacker Tools
  21. Hacker Tools Mac
  22. Hacker Tools Online
  23. What Is Hacking Tools
  24. Hackrf Tools
  25. Hacker Tools Hardware
  26. Pentest Tools Tcp Port Scanner
  27. Pentest Tools Free
  28. Pentest Tools Github
  29. Hackers Toolbox
  30. Black Hat Hacker Tools
  31. Pentest Tools Windows
  32. Pentest Tools Nmap
  33. Hacker Tools For Pc
  34. Hacker Tools For Windows
  35. Hacker Tools Apk Download
  36. Hacking Tools For Pc
  37. Hack Tools Pc
  38. Hacker Tools Apk
  39. How To Make Hacking Tools
  40. Hacking Tools
  41. Game Hacking
  42. Pentest Tools For Android
  43. Usb Pentest Tools
  44. Pentest Tools Free
  45. Hacker Tools Github
  46. Hacker Hardware Tools
  47. Hacking Tools Windows 10
  48. Bluetooth Hacking Tools Kali
  49. Hacking Tools Online
  50. Hacker Tools Online
  51. Top Pentest Tools
  52. Pentest Tools Framework
  53. Hack Tools 2019
  54. Hack Tool Apk No Root
  55. Physical Pentest Tools
  56. Hacking Tools Pc
  57. Hacker
  58. Hacker Tools Free
  59. Pentest Tools Apk
  60. Wifi Hacker Tools For Windows
  61. Pentest Tools Nmap
  62. Pentest Tools Bluekeep
  63. Hacking Tools Hardware
  64. Pentest Tools Open Source
  65. Hack Tool Apk
  66. Hacker Tools Software
  67. Hack Tools Download
  68. Hack Tool Apk No Root
  69. Hacker Techniques Tools And Incident Handling
  70. Hacking Tools 2019
  71. Pentest Tools Bluekeep
  72. Hacker Tools Windows
  73. Hack Tools Github
  74. Pentest Tools Website
  75. Best Hacking Tools 2019
  76. Nsa Hack Tools Download
  77. Pentest Tools
  78. Pentest Tools List
  79. Pentest Tools Review
  80. What Is Hacking Tools
  81. Termux Hacking Tools 2019
  82. Hacker Tools Apk Download
  83. Hacking Tools Windows
  84. Kik Hack Tools
  85. Hacking Tools For Mac
  86. Hacking Tools Pc
  87. Hacking Tools Download
  88. Hacker Tools List
  89. Hacking Tools For Mac
  90. Hacking Tools Online
  91. Top Pentest Tools
  92. Hack Tools Pc
  93. Pentest Tools Bluekeep
  94. Hak5 Tools
  95. Hack Tools 2019
  96. Physical Pentest Tools
  97. Top Pentest Tools
  98. Hacker Tools Hardware
  99. Pentest Tools Apk
  100. Hacker Tools Free
  101. New Hacker Tools
  102. Hacking Tools Kit
  103. Hack Tools For Games
  104. Kik Hack Tools
  105. Hacking Tools For Pc
  106. Hacking Apps
  107. Hack Tools For Windows
  108. Blackhat Hacker Tools
  109. Hack Tool Apk
  110. Hack Tool Apk
  111. Hacking Tools For Games
  112. Hacks And Tools
  113. Pentest Tools Open Source
  114. Github Hacking Tools
  115. Hacks And Tools
  116. Pentest Tools For Ubuntu
  117. What Are Hacking Tools
  118. Pentest Tools Framework
  119. Hacker Techniques Tools And Incident Handling
  120. Game Hacking
  121. Hacking App
  122. Computer Hacker
  123. Pentest Tools Tcp Port Scanner
  124. Hackers Toolbox
  125. What Is Hacking Tools
  126. Pentest Tools For Mac
  127. Pentest Tools Tcp Port Scanner
  128. Hack Tool Apk No Root
  129. Tools Used For Hacking
  130. Hack Tools Online
  131. Hack Tools For Ubuntu
  132. Hacker Tools 2020
  133. Computer Hacker
  134. Pentest Tools For Ubuntu
  135. Hack Tools Github
  136. Hacking Tools For Windows 7
  137. Android Hack Tools Github
  138. Hack Tools Pc
  139. Pentest Tools Find Subdomains
  140. Hacker Tools List
  141. Hacker Tools For Windows
  142. Hacker Tool Kit
  143. Hack And Tools
  144. Hacker Tools For Windows

Sunday, August 30, 2020

Linux Command Line Hackery Series - Part 5



Welcome back to the Linux Command Line Hackery series, this is Part-V of the series. Today we are going to learn how to monitor and control processes on our Linux box, so wrap your sleeves up and let's get started.

Command:    ps
Syntax:           ps [options]
Description:  ps displays information about the currently running processes. Some of the common flags of ps are described briefly below
Flags: 
  -A or -e -> select all processes
  -a -> select all processes except both session leaders and processes not associated with a terminal.
  T -> select all processes associated with current terminal
  -u <username or id> -> select all processes of a given user or userlist

Open up a terminal and type ps:

ps

what you'll see is a list of processes currently running in your terminal. One important thing to notice in the output is what's called as PID which stands for process ID. It is the number that uniquely identifies a process. Just keep that PID concept in mind we'll use it soon.

OK I know that's not really what you want to see rather you want to see all the processes that are currently running on your box. Don't worry we have flags to rescue, in order to see all the processes you can use the -e flag like this:

ps -e

Boom! you get a long list of processes currently running on your machine (don't stare at me like that, you asked and I gave you that). If you want to see processes of a particular user you can type the following command in your terminal:

ps -u bob

here "bob" is a username. This command will list all processes of the user with effective user name of bob.

You can do a full-format listing of the processes using the -f flag like this:

ps -fu bob

But the output of the ps command is a snapshot not really a live preview of what is going on in your box. I know your next question is going to be something like this, Isn't there a command in Linux that gives me a live updating information of the processes? Yes, there is a command called top that we'll learn about next.

Command:    top
Syntax:           top [options]
Description:  top gives a dynamic real-time view of a running system. That is, it gives the up-to-date information about all the processes running on your Linux box (sounds fun!). Besides giving information about current processes and threads top also provides a brief system summary.

To start top just type this command:

top

and you'll get a nice and cute looking ugly display :). Well what the heck is going on here you might ask, right? What you get is information about what is going on with your computer. To see what more can you do with top just type <h> within the program window and you'll be given list of options that you can play with.

OK looking at what processes are going on in your box is cool but what if you want to terminate (or close) a process, is there a command line utility for that? Yes, there is and that's what we are going to look at next.

Command:   kill
Syntax:          kill [options] <pid> [...]
Description:  kill is used to send a signal to process which by default is a TERM signal meaning kill by default sends a signal of termination to process (Cruel guy). To list the available signals we can use the -l or -L flag of the kill command.


To simply terminate a process we provide kill command a PID (process ID) and it will send the TERM signal to the process. So to kill a process first we'll list the running processes and then we'll keep the PID of the process in mind that we want to terminate. After that we'll issue the kill command with the PID that we just found.

ps -ax
kill 1153

the above command will send a TERM signal to the process whose PID is 1153, as simple as that.

We can also use our already learned skills to refine the output of ps command. Say we have a xterm terminal running on our box and we want to terminate it. By using ps command all alone we'll get a long listing of all processes running on our box. But we can limit the output of ps command to just those processes that we're interested in by piping ps command with the grep command like this:

ps -ax | grep xterm

wow! that's amazing, we're able to pull out only those results from the ps command that contained xterm in them. Isn't that a cool trick? But what is that vertical bar ( ) doing in the middle, you may be thinking, right? Remember we learned about the input and output re-directors previously, the vertical bar (pipe in geeky terms) is another re-director whose task is to redirect the output of one command as input to another command. Here the pipe redirects the output of ps -ax command as input to grep command and of-course from the previous article you know that grep is used to search for a PATTERN in the given input. That means the above command searches for the xterm word in the output of ps -ax command and then displays just those lines of ps -ax command which contain xterm. Now get that PID and kill that process.

That's it for today, try these commands up on your own box and remember practice is gonna make you master the Linux command line. :)

More info


APT Hackers Exploit Autodesk 3D Max Software For Industrial Espionage

It's one thing for APT groups to conduct cyber espionage to meet their own financial objectives. But it's an entirely different matter when they are used as "hackers for hire" by competing private companies to make away with confidential information. Bitdefender's Cyber Threat Intelligence Lab discovered yet another instance of an espionage attack targeting an unnamed international

via The Hacker NewsRelated posts