Filled Under: AIX

LVM

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

how to Compare between 2 files

how to comapre between 2 files to list the differences between them ???

there is a greate 2 commands which you can use them.

first command is

diff  FILE1  FILE2

and this command just display the difference between the 2 files.

How to sync users and password between hosts on hacmp

AIX has a wonderful method to synchronize the users and their passwords or any files you need to sync them between HACMP Nodes.

there is a command call “rdist”, this command used to transfer files between hosts and make them synced.

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

run levels description

The Following points shows the meaning of each run level :

  • on LINUX-UBUTNU/DEBIAN:

0 – halt
1 – single user
2 – multiuser (default)
3 – same as 2
4 – same as 2
5 – same as 2
6 – reboot

how to know current run level

run the following command to know your current run level:


# who -r
         run-level 2  2013-12-20 00:39

how to log ftp commands

if you need to see FTP users log, and what they do on your system, just do the following commands ( this article doesn’t useful for past commands, it will be useful to get commands in the future after you do these steps):

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 :

how to know the Major Number for Specific Volume Group

to list the Major number for Specific Volume Group, use the following Command :
“lvgenmajor VOLUME_GROUP_NAME”

for example :

# lvgenmajor rootvg
10

and the following link show how to display the available Major Numbers:

how to list file system inside specific volume group

You can use command ‘lsvgfs’ to list all file systems inside specific volume group like the following example:

# lsvgfs rootvg
/
/usr
/var
/tmp
/home
/opt
/admin
/var/adm/ras/livedump
/oracle_osb
/u01/app/oracle
/u02/oradata
/iso_image
/TestFs