to compress content in current directory tar -cvf zip.tar .
to compress content in home directory tar -cvf zip.tar /home
to gzip content gzip scripts.tar
to extract to .tar file gzip -d scripts.tar.gz or gunzip scripts.tar.gz
to decompress tar file tar -xvf scripts.tar
to check if port is assigned or not
$ cat /etc/services | grep 6001
# 26001-26207 # Unassigned
Volume Group
With LVM, "logical" partitions can span across physical hard drives and can be resized (unlike traditional ext3 "raw" partitions). A physical disk is divided into one or more physical volumes (Pvs), and logical volume groups (VGs) are created by combining PVs as shown in Figure
$ lsvg -o
datavg
rootvg
$ lsvg -l datavg
datavg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
logdatavg jfs2log 1 2 2 open/syncd N/A
webspherelv jfs2 40 80 2 open/syncd /usr/IBM/WebSphere
itmlv jfs2 16 32 2 open/syncd /IBM/itm
$ df -g /usr/IBM/WebSphere
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/webspherelv 10.00 8.10 20% 40540 3% /usr/IBM/WebSphere
refer to link for details https://www.redhat.com/magazine/009jul05/features/lvm2/

No comments:
Post a Comment