How 2 Know
If you can't Google it, You Can Knowing it.

Posts Tagged ‘linux’

Recursively replacing a string in all files in a directory

Wednesday, April 11th, 2018

You can use the following command to change Specific string on all files under specific directory:

find /u01/directory -type f | xargs perl -pi~ -e ‘s/oldtext/newtext/g;’

Tested on Linux & AIX

Ref:
https://blogs.oracle.com/rammenon/recursively-replacing-a-string-in-all-files-in-a-directory-linux

How to disable LDAP Authentication in Linux

Wednesday, October 28th, 2015

After a customer had performed some bad edits on various LDAP configuration files, users were locked out and unable to access the system. Root could still login however.

I logged in as root, and rather than mess with various config files, eg under /etc/pam.d, ran this command to disable LDAP authentication and enable “normal” authentication using /etc/shadow:

Continue Reading…

LVM

Saturday, September 20th, 2014

LVM :- Logical Volume Manager and it’s a disk Management for Linux/UNIX Systems.

How To Check Linux Hardware Info

Saturday, July 5th, 2014
lscpu

Reports info about the cpu and processing units.

lshw

Reports detailed/brief info about multiple hardware units like cpu, memory, disk, network adapters etc.

Continue Reading…

how to know your operating system release

Saturday, December 21st, 2013

if you want to get your operating system relase you have 2 ways to do that:

First: you can run the following command:

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 13.04
Release:	13.04
Codename:	raring

Continue Reading…

How to make the System Ring

Sunday, July 28th, 2013

if you are a Shell Scripting Developer and all the time deveolpe Shell Scripts, if course you need to make your System Ring after finished the script or when it needs data from the user.

try this code on AIX
Continue Reading…