You are on page 1of 5

Lab practice -3

1)Create a file in /tmp named as “your name”

ans) touch /anil

2)Copy data from /tmp /mani. (file in 10.10.34.50 server username: root password: root123)

ans)login 10.10.34.50

scp /tmp/mani <ip>:/anil

3)add a line in last “ 56 this is a last line”

ans)56G

4)Go to 40th row without using arrows & change word humans as animals.

ans)40G

5)Go to 50th row without using arrows and go end of the line and came back to starting of the line.

ans)50G

6)Go to 1st row without using arrows and change character in “mixing” word (m = p)

ans)gg

7)Go to 10th row without using arrows and delete character “p” in “pollutions” and save the file

ans)10G

8)Undo the last change make “ollutions” as “pollutions”

dc

9)Delete the words in 5th row - “problem” , 6th row – recycle , 7th row - global

5G-dw

6G-dw

7G-dw

10)Undo the last thing you did in 9th question

11)Go to 10 row copy the line and paste between 20 , 21

10G-yy-20G-p

12Go to 30th row cop 3 rows 30,31,32 paste between 40 ,41

same as above try

13)Go to the 50th row copy 1st word and paste that last in 50th row

same as above try

14)Go to last row and move the line between 25,26


same as above try

• Add lun Make a file system with size of 10 GB and mount the file system with /IBM/IBM-AIX

• Add lun make 5 partitions and make file systems as show below

10GB - /NITRO
10GB - /ZEN
10GB - /EXSI
10GB - /HYPER –V
10GB - /NOVA

• Add lun and make file system size of 1 GB and mount with /HP/HP-UX

• Create a sized file 900MB in /HP-UX named as sized1 (check disk utilization /HP-UX)

• Extend the file system /HP-UX 1GB to 5GB


• Change file system mount point /HP/HP-UX to /SUN/SOLARIES

• Change the file system permissions as only owner have all access

(note: all file system must persistence across reboot also)

1) Create a group named as NETWORK_DEVICES group id is 5000 add the below users

1.hub(5001)

2.switch(5002)

3.router(5003)

4.bridge(5004)

2) Create a group name as STORAGE_DEVICES group id is 6000 add below users without home directory
1.DAS(6001)

2.NAS(6002)

3.SAN(6003)

3) Allocate NETWORK_DEVICES group as secondary group to DAS user

4) Allocate STORAGE_DEVICES group as secondary group to hub user

5) Change password to SAN (san@123)

6) Set unexpired password to router user

7) Set expire password (20 days) to bridge user

8) lock the switch user

9) How to check user(NAS) password status and check password attributes

10) Change user id of SAN (6003 to 6004)

11) unlock the switch user

12) create a users (bootblock , superblock , inode , datablock ) with default parameters and add to secondary
group to NETWORK_DEVICES

13) delete superblock user

14) check inode user information

15) swith to datablock user and check who is current user

• Create a file with any user named as AP-001 in /tmp. The file must be accessible for all now your pwd is
root

• Create a directory with any user named as TS-001 /var/tmp. The directory must be accessible for all now
your in root
• Switch to hub user and create a file in /tmp/TS-002 named as AP-002 and its accessible for hub and
STORAGE_DEVICES group member also switch any group member of STORAGE_DEVICES and delete it
(except with root)

• Switch to NAS user and create a directory named TS-003 and its accessible to owner only

• Create a file in /tmp/ named as AP-002 with root user and change ownership to NAS user and group is
NETWORK_DEVICES

• Switch to SAN user create a file in /var/tmp named Ap-003. Make Owner only accessible that file

• Create a shared directory in /tmp named as sharedirectroy_1 with stickybit create a files (f1……) with all
users

• delete all files in sharedirectory_1 except with root user

• Create a directory in with user of NAS in /tmp name as TS-004 and create a file named f1 with hub user
and create a file named f2 with switch user in TS_004 but the file must accessible for STORAGE_DEVICES
group

• Create a file /tmp with any user but the file only have read permission for any one except root

You might also like