Nmap Cheat Sheet : All the Commands & Switches

Nmap is Linux command-line tool for network exploration and security auditing. This tool is generally used by hackers and cybersecurity enthusiasts and even by network and system administrators. It is used for the following purposes: Real time information of a network. This Nmap cheat sheet help you master what is arguably the most useful tool in … Read more

DellEMC PowerPath powermt Command Examples – Display, Check, Remove, Config, Restore

For installing and configuring DellEMC PowerPath in Linux OS, please refer to How To Install and Configure DellEMC PowerPath on Linux. If your server has two HBA cards connected to DellEMC SAN storage device, you can implement load-balancing, and fail-over on the HBA cards using the DellEMC PowerPath software. DellEMC Powermt management utility helps you … Read more

Quick way to find out the version number of an installed Perl module in Linux/Solaris OS

Perl module features and behavior can change from version to version and so knowing the version number of an installed Perl module can be useful in several scenarios.Below is the command line methods for finding out the version number of an installed module in Linux/Oracle Solaris OS. perl -M<PerlModuleName> -e ‘print $ <PerlModuleName>::VERSION .”\n”;’ example: … Read more

instmodsh – A shell script to examine/list installed Perl modules in Linux/Solaris OS

instmodsh is a little interface to ExtUtils::Installed to examine installed perl modules, validate your packlists and even create a tarball from an installed module in Linux/solaris. To examine/list installed perl modules in Linux/Solaris OS, create a bash script and execute it. also you can find the instmodsh script in unixonline.ir GITHUB account. #!/usr/bin/perl ### Name … Read more

Shutdown in Linux and Solaris CLI

To shut a system down, one of two commands are typically used: shutdown or init. Both commands perform a clean shutdown of the system. Both start processes that write all file system changes to disk and terminate all system services, processes, and the OS. The following table describes the various shutdown commands used in Linux / Solaris OS and provides … Read more

Create a Custom or Disable DST(daylight-saving time) in RHEL/CentOS Linux

A few weeks ago, it is announced (by The Energy and Natural Resources Ministry of Iran) that DST will be permanent and GMT+3:30(IRST) will be used forever in the country. From 2023, Iran will not set their clocks forward for Daylight Saving Time (DST) but remain on standard time permanently. Based on following manual, we … Read more

Install VNC Server to connect with GUI in RHEL/CentOS Linux

Virtual network computing (VNC) is a type of remote-control software that makes it possible to control another computer over a network connection. Keystrokes and mouse clicks are transmitted from one computer to another. ### Install VNC Server [root@testos ~]# yum install -y tigervnc-server ### If firewalld is running, allow VNC service [root@testos ~]# firewall-cmd –add-service=vnc-server … Read more

Package Management in RHEL/CentOS 7,8 Linux

RPM is a command-line utility for managing packages on Unix/Linux systems. It allows you to install, query, update, verify and remove RPM packages.It is the default package manager for Red Hat based systems and only works with the .rpm format. You can install such packages using the rpm or the yum command.The package management tool … Read more

Working with Services in RHEL/Centos 7

### It’s possible to check all services like follow: # the list of all services [root@testos]# systemctl list-unit-files -t service UNIT FILE STATE abrt-ccpp.service enabled abrt-oops.service enabled abrt-pstoreoops.service disabled abrt-vmcore.service enabled abrt-xorg.service enabled abrtd.service enabled arp-ethers.service disabled atd.service enabled auditd.service disabled auth-rpcgss-module.service static autofs.service disabled autovt@.service enabled blk-availability.service disabled brandbot.service static certmonger.service enabled chrony-dnssrv@.service static … Read more

Enable SSL/TLS for vsftpd to use Secure FTP(SFTP) connections in RHEL/Centos

### Create self-signed certificate. [root@testos ~]# cd /etc/pki/tls/certs[root@testos certs]# openssl req -x509 -nodes -newkey rsa:2048 -keyout vsftpd.pem -out vsftpd.pem -days 365Generating a 2048 bit RSA private key……++++++…….++++++ writing new private key to ‘/etc/pki/tls/certs/vsftpd.pem’ You are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is … Read more