Lab Assignment-2
Lab 2. Working with Linux Commands
1. Introduction to the Linux operating system and its commands (cd, mv, mkdir, cp, rm,
cat, ls, mv, pwd).
Fig.1
Refer the directory structure shown in Fig-1. Accomplish the following tasks, in sequence.
a. Create the directory structure as in Fig-1 in your home directory.
b. Rename each file in Personal with the prefix P. i.e. the file accounts in Personal
directory should be renamed as Paccounts.
c. Move the file named Paddress to a newly created directory in Myhome from its
current location.
d. Create a directory Backup under Myhome directory and move all the contents of
Personal into Backup.
e. Remove all the contents of Personal directory.
f. Now rename the Backup directory as Personal.
2. Understanding the gedit editor & execution of source code.