Posts Tagged ‘linux’
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
Tags: AIX, linux, Recursive, replace, script, string, xargs
Posted in AIX, Linux, Shell Script | No Comments »
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…
Tags: authconfig, disable, ldap, linux
Posted in Linux | No Comments »
Saturday, September 20th, 2014
LVM :- Logical Volume Manager and it’s a disk Management for Linux/UNIX Systems.
Tags: AIX, linux, logical, LVM, Manager, unix, volume
Posted in abbreviations and definitions, AIX, Linux, Solaris | No Comments »
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…
Tags: df, free, hardware, hdaparm, info, inxi, linux, lsblk, lscpu, lshw, lspci, lsscsi, mount
Posted in Linux | No Comments »
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…
Tags: debian, linux, release, ubuntu
Posted in Linux | No Comments »
Monday, October 21st, 2013
when you login to the system you get a welcome message which contain information about “Last unsuccessful login” , “Last login” and System Information.
if you need to disable this message, just run the following command :
Continue Reading…
Tags: AIX, hushlogin, last, linux, login, solaris, unsuccessful, welcome
Posted in AIX, Linux, Solaris | No Comments »
Wednesday, October 9th, 2013
Hello Everybody,
suppose that i have 2 systems Linux1 & Linux2 and on each server i have user test1 on Linux1 and test2 on Linux2.
now, i want to make user test1 on Linux1 access server Linux2 on user test2 without password.
Continue Reading…
Tags: AIX, key, linux, login, password, private, public, solaris, ssh, unix, without
Posted in AIX, Linux, Solaris | No Comments »
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…
Tags: AIX, bell, linux, ring, script, shell
Posted in AIX, Linux, Shell Script | No Comments »