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

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