You are on page 1of 7

Command:

To interact with Linux, a command is entered at the command


prompt

Linux commands are case-sensitive and most commands are


typed in lower case

Categories

Internal Command

External command
Command
is a directive to the computer to perform some task.
is a application program.
Case sensitive

syntax

Command - Options +Format Argument 1 .. Argument 2

Option /switch
various options which control how the program will operate.

Format
Change the format of the output

Argument
may be filenames, pathnames, directories or special options
Type of commands

Simple commands
Complex commands
Compound commands

Example:
date , ls - simple
ls -l - complex
who; ls - compound commands
SESSION- 1
Aim :
The main aim of this session is to explore basic Linux
commands.

Getting Help
1. man and its options
2. whatis
3. which
4. apropos
5. whereis
6. Info
7. --help
Basic commands

1. Find out currently logged in user


2. Explore date, cal, bc with various options and formats
3. Create alias for the command clear
4. Explore command : history
5. List out the files and folders in currently working directory?
6. how to list the hidden files
7. Find out the hidden files in your system
8. explore the commands :
finger
whoami
who am i
clear
9. What is the alternate command to ls
10. Find out the kernel version
11. What is the default shell in your system
SESSION -2
Aim : To create user , group Su Sudo commands .

1. Create a user in your name and your pet animal name


2. Change the password of your account
3. Add your account in sudoers file
4. Change to pet animal account
5. Find out the default shell of the account
6. Switch to your account
7. Delete your pet animal account
8. Explore /etc/passwd file
9. Explore /etc/group file
10.List out the list of users in the admin group.
SESSION – 3

1. Find out which shell you are currently using?


2. Find the present Directory
3. Change directory to /
4. List the contents of /home directory
5. Create directory in your name.
6. Go to your directory
7. Create a file using vi, cat, touch example “file1” , “file2” ,
“file3”.
8. Change the timestamp of the file
9. Append the file using cat
10. Concatenate two files
11. Find the permissions of the file “file1”
12. Find the hidden files in the your home directory

You might also like