How to Recover Removed File in Linux

In this scenario, we are going to recover removed file in Linux OS.for example: /data/mongodb/audit/sh0-prm-audit.log is removed. Find the deleted file by lsof command: [root@unixonline]# lsof | grep -i delete init 1 root 9r REG 253,7 10406312 528590 /var/lib/sss/mc/initgroups (deleted) hald 2706 haldaemon 19r REG 253,7 10406312 528593 /var/lib/sss/mc/initgroups (deleted) ntpd 2874 ntp 4r REG … Read more

Veritas NetBackup License Activation Keys

Veritas NetBackup is a backup and recovery software suite designed for enterprise users. NetBackup backs up and restores files, directories and raw partitions on a server. A server protected by NetBackup is known as a NetBackup client. NetBackup software installs on a server known as a media server. During backups, the client sends data across … Read more

Install NVIDIA Graphic Driver on Linux

If your Server/Computer has NVIDIA Graphic cards, Install NVIDIA Graphic Driver to improve Graphics related performance like gaming and mining. [root@unixonline ~]# lsmod | grep nouveau nouveau 2187264 1 video 45056 1 nouveau mxm_wmi 16384 1 nouveau wmi 32768 2 mxm_wmi,nouveau i2c_algo_bit 16384 1 nouveau drm_kms_helper 200704 1 nouveau ttm 131072 1 nouveau drm 520192 … Read more

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

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

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