Tuesday, May 24, 2011
Monday, May 23, 2011
- You can use letters to specify the permissions, with one or more of:
- u=User (the file owner)
- g=Group (other users in the file's group)
- o=Other (everyone else)
- r=Read permission
- w=Write permission
- x=Execute (or enter directory) permission
- (and some more obscure ones, see the manual page)
- chmod u-w file...
- Subtract user write permission from the file(s).
- chmod go+rx file...
- Add group-and-other read-and-execute permission for the file(s).
- Or you can set permissions as an octal number. The permission bits have the meaning specified as in the description for umask below, except that a bit is set in order to give rather than deny permissions.For example, "chmod 640 file..." would set the file(s) to read and write (but not execute) permission for the user, read permission for group, and no permission for anyone else. This is represented as "rw-r-----" by the "ls -l" command.
- list the files in the current directory
- ls *.c
- list the files which end ".c"
- ls mydir/
- list the files in directory mydir
- ls -a
- list ALL files, even ones which begin with a dot, which are normally omitted
- ls -s
- list files, with their sizes
- ls -l
- list files, giving full details about each file
- ls -al mydir/
- list all files in directory mydir (including those beginning with a dot), giving full details about each file
Sunday, May 22, 2011
Saturday, May 21, 2011
How to know the Disk Space Usage?
Ans:-Use du command (Summarize disk usage of each FILE, recursively for
directories.) Good to use arguments du -hs
(-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
(-s, --summarize display only a total for each argument
Friday, May 20, 2011
How to backup AIX server?
(1)For backup of rootvg, mksysb command can be used on command line or via smitty.
Advantage of mksysb is that it can create a \'bootable\' media of the backup of rootvg.
(2) For backup of filesystems, \'backup\' command can be used ( restore command to be used for restoration of the backup).
(3) The answer given regarding savevg ( and restvg ) is correct.
How to replace the disk in rootvg ?(vg is mirrored and there are other hard disks available in that vg)?
# reducevg vgname pvname
# chpv -C pvname
# rmdev -dl pvname
#mirrorvg vgname newpvname
#bosboot -ad /dev/pvname
#bootlist -m normal pvname1 pvname2
# lsvg -l vgname