INDEX
[Link]. List of Programs Date Sign
LAB ASSIGNMENT NO. 1
AIM: Basic Linux Commands
1 Obtain the following results :
a) To print the name of Operating System.
b) To print the login name.
c) To print the host name.
2 Display the calendar for:
a) Jan 2000
b) Feb 1999
c) 7th, 8th and 9th month of the year 2000
d) For the current month
e) Current date day abbreviation, month abbreviation along with year
3 Display the time in 12-hour and 24-hour notation.
Display the current date and current time.
4 Create a directory under your home directory
5 Display the message “GOOD MORNING” in enlarged characters
6 Display the name of your home directory.
7 Create a directory SAMPLE_NAME under your home directory.
8 Create a Sub-directory by name TRIAL_NAME under SAMPLE_NAME.
9 Change to SAMPLE_NAME.
10 Change to your home directory.
11 Change from home directory to TRAIL_NAME by using absolute and relative pathname.
12 Remove directory TRIAL_NAME.
LAB ASSIGNMENT NO.2
Task 1:
a Create three different files
b Write text in all files
c Use grep command
d Use sort command
e Count the lines
Task 2:
a Create a file with employee name
b Show the file
c Use grep command to get the details of the IT department
d Use sort command to get the details of the employee who get highest salary
Task 3:
a Create a file with student name
b Show the file
c Use grep command to get the details of any rollno.
d Use sort command to get the details of the student who get highest marks
LAB ASSIGNMENT NO.3
1 Create directory and file
2 Default permission check
3 Public File Access
4 Private File access
5 Execute File command
6 Dangerous permission.
LAB ASSIGNMENT NO.4
AIM :Basic File attributes commands.
1 Create a file with at least 4 lines and perform the following operations on it:-
a) Display first four lines of the file.
b) Display last four lines of the file.
c) Display first three lines of the file.
d) Display last Two lines of the file.
2 Find the nature of all files and directories.
3 Find the nature of a file.
4 Create files SAMPLE, Sample, sAMple, SAMple.
Write a command to list all the files by the name SAMPLE, irrespective of the case.
5 Write a command to list all files starting with lowercase letters.
6 Explain the output of “ls –l SAMPLE”.
7 Write a command to change the permission of SAMPLE to “execute” for all categories of
people using absolute permission.
After this, write a command to remove the file SAMPLE and explain the output.
8 Write a command to change the permission of a new file using relative permissions to
execute for all categories using relative permissions and together with this, list the
permission for the file.
9 Create a file with permission rw-r-xr--, specify the chmod expression required to change
them to :-
1. rwxrwxrwx
2. r--r--r--
3. --r--r--
4. ---------
10 List the attributes of a directory