This tutorial showed how to use thewhichcommand inLinuxto find the path to a command's executable binary. See and download ourLinux commands cheat sheetfor other essential Linux commands and examples of using them.
Similar to these we have nc command also to check the port open in linux. Lets check this command also. III. Using nc command ### Checking 9000 port[root@ngelinux-prd~]#nc-zv ngelinux-pxy9000Ncat:Version7.50(https://nmap.org/ncat )Ncat:Connectedto10.134.208.41:9000.Ncat:0bytes sent,...
The fuser command is a very smart unix utility used to find which process is using a file, a directory or a socket. It also gives information about the user …
Aureport is a tool that produces summary reports of the audit system logs. The aureport utility can also take input from stdin as long as the input is the raw log data. The reports have a column label at the top to help with interpretation of the various fields. Except for the main sum...
To run particular commands without sudo password in Linux, you can use theNOPASSWDdirective in the/etc/sudoersfile. This directive allows you to specify a list of commands that can be run without requiring a password. For example, to allow the useruser1to run specific commands without a passw...
sctp does not use second and third ("default" and "max") values of sctp_rmem tunable. The format is the same as tcp_rmem but the meaning is different so make the documentation explicit to avoid confusion. For example, Raw r8 # sysctl -q net.core.wmem_default ...
How to use Netcat? If you are a Linux beginner or someone who has never used Netcat before, it may be slightly confusing and intimidating at the start. But worry not, as we are going to walk you through each step of the process. So, first of all, what is the general syntax of the...
This command gives you a good overview of the network server processes currently running on your system. However, becauseUDPservers don’t listen and don’t have connections, you’ll have to use -iUDP to view running clients as well as servers. This usually isn’t a problem, because you ...
a)You need to have a running RedHat/CentOS 7/8 System. b)You should haveyumcommand installed in your System. c)You should havesudoaccess to run all privileged commands. NOTE: Please note that here I am using root user to run all the below commands.You can use any user with sudo acce...
Download and extract theJava archiveunder the/optdirectory. For more information head over tohow to install java on Ubuntu 18.04. To set the JDK 1.8 Update 192 as the default JVM we will use the following commands : # update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_192/...