To obtain the latest git repo tag issue the below command. In my case this is how we list the latest master version of what is pushed to our test server or live server. bash [web@server project]# git describe 1.0.0-21-g58c28a4 Our format is main_version-revision-hash which will ensure that all commits are unique. You can issue…
To modify a user’s password in PostgreSQL via the psql CLI use the below syntax.
- [postgres@server pgsql]# psql -U postgres
- postgres=# ALTER USER user WITH PASSWORD 'password';
Change user to the proper username and password to the new password you want to set. You will see a “ALTER ROLE” confirmation after issuing the command.
Excluding one port from a tcpdump output is easy. Use the below syntax to make sure the port is excluded as both a source and destination in the tcpdump output. bash tcpdump -n not dst port 22 and not src port 22 You might issue the above command if you are connected to the server…
You can use yum to gain more information about a package by using the below command.
- yum info <em>package_name</em>
Using the “info” option will provide details about the package including what version is installed, what versions are available, the yum repo it is available from, the size of the installed package, the size of the new package, the version, the release, a summary about the package, and a detailed description of the package. An example using postgresql-server is below.
Installing nmap on CentOS Linux is very easy using the yum utility. Just issue the below command from the CLI and nmap will be installed.
- [root@server ~]# yum install nmap
Using nmap is easy. The below performs the default scan on an IP address.
- [root@server ~]# nmap IPADDRESS