0% found this document useful (0 votes)
44 views

Scripting Basic Questions

This document contains instructions for three lab sessions on basic Linux commands. Session 1 covers commands to find the current shell, directory, changing directories, listing directory contents, creating directories and files. Session 2 covers commands for getting help information like man, apropos, whatis and suppressing empty lines or adding line numbers. Session 3 covers commands to find the logged in user, explore date/calendar functions, history, changing timestamps, listing files, alternate ls commands, creating aliases, finding hidden files, inodes, and the default shell.

Uploaded by

vpavankumar80
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Scripting Basic Questions

This document contains instructions for three lab sessions on basic Linux commands. Session 1 covers commands to find the current shell, directory, changing directories, listing directory contents, creating directories and files. Session 2 covers commands for getting help information like man, apropos, whatis and suppressing empty lines or adding line numbers. Session 3 covers commands to find the logged in user, explore date/calendar functions, history, changing timestamps, listing files, alternate ls commands, creating aliases, finding hidden files, inodes, and the default shell.

Uploaded by

vpavankumar80
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1/22/2015

LAB : 1

LAB : 1

SESSION 1

SESSION -2

1.
2.
3.
4.
5.
6.
7.

1. Suppress the empty line in the file


2. Put lines numbers in the file
3. man and its options
4. Apropos
5. Whatis
6. Which
7. --help
8. Info
9. Help
10. type
11.Whereis
12.Clear the screen

Find out which shell you are currently using?


Find the present Directory
Change directory to /
List the contents of /home directory
Create directory in your name.
Go to your directory
Create a file using vi, cat, touch example file1 , file2 ,
file3.
8. Append the file using cat
9. Concatenate two files
10. Find the permissions of the file file1

LAB : 1
SESSION 3
1. Find out currently logged in user
2. Explore date, cal with various options and formats
3. Explore history Hint: history
4. Change the timestamp Hint: touch
5. List out the files and folders in currently working directory?
6. bc
7. What is the alternate command to ls
8. create the shortcut to the command clear Hint: alias
9. Find the hidden files in the your home directory
10. find the inode number of file1
11. Find out the kernel version of your system
12. how to find the default shell of your system.

You might also like