-
Archives
- September 2021
- December 2018
- August 2018
- April 2018
- September 2017
- August 2017
- January 2016
- November 2015
- October 2015
- September 2015
- February 2015
- September 2014
- July 2014
- March 2014
- February 2014
- December 2013
- October 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
-
Meta
Category Archives: Linux
Recursively replacing a string in all files in a directory
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
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 … Continue reading
Useful Commands for Redhat LVM and increasing Filesystem
– Scan New Hardware: scsi-rescan rescan-scsi-bus.sh –forcerescan – For Physical Volumes: pvdisplay pvscan pvcreate /dev/sdb – For Volume Groups: vgdisplay vgscan vgextend VGNAME PVNAME lvextend -L+50G LVNAME resize2fs LVNAME
LVM
LVM :- Logical Volume Manager and it’s a disk Management for Linux/UNIX Systems.
How To Check Linux Hardware Info
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.
uncompress files using jar command
you can uncompressed zipping files using java, specially “jar” command: to do that , try the following : /usr/java6/bin/jar -xvf /tmp/test.zip
how to know your operating system release
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: … Continue reading
how to disable welcome message
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 :