L6 Simple Commands
L6 Simple Commands
Logging in: - If you have the name puneet as your user id , you will be expected to enter
this name when you see a promote similarly to this on the terminal:
LOGIN :
This login promote screen can be in variable forms sometimes you may see the machine
name too (cozy every machine has a name is UNIX) one some system you may see
username instead
Since you now have an account Puneet entire this starting at the prompt. Then process
enters key over the string:
LOGIN: Puneet
Password:
The system now ask you to enter the password, it is a secrete code handled to you by
your Administrator.
So type your password:
Logon puneet
Password:
Unique advantage: You may see that the password your entered is not display on the
screen. This is another security features. If you type wrong password then press back
space key and retype your password , also when you entire some wrong enter then error
message will be displayed
LOGIN : incorrect
LOGIN
When your entire is valid then the first message after login you will get is :
Last login this sep. 16 10:09:17 on tty1
.
LOGGING OUT.---
There are some simple key board short kit and also by mouse:
$ (ctrl-d) –keep (ctrl) pressed and then press of login:
Ctrl+d is generated by pressing ctrl key and creator .The login message confirms that the
session has been terminated, m the terminal is evadible for the next user .If you do not
see the login but see this
Use log out to log out
It means that ctrl +d does not week.
You can use log out command tasted of ctrl +d -% log out (enter)-------% is the prompt.
Login:
Use exit command like layout.
SIMPLE COMMANDS
Syntax:-
date [OPTION]... [+FORMAT]
or:
date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
To display Hours.
To display Seconds.
cal:-This command will display calendar for specified month and year.
syntax:-cal [month] <year>
Display calendar for year 2006
[root@192 ~]# cal 2006
It will display calendar for year 2006.
Display calendar for first month of year 2006.
[root@192 ~]# cal 1 2006
January 2006
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
tee:-It will send output to standard output as well as specified file. This command
performs the operation of pipe and redirection.
syntax:-<command> | tee <filename>
Example:-
[root@192 ~]# cat text.txt
hello
c
language is a middle level language
C++ is an object oriented language
java is purely object oriented language
C)Pwd:- This command will displays full path name for present working directory.
syntax:-pwd
Example:-To see current working directory
[root@localhost ~]# pwd
/root
Present working directory is /root
D) cd:- This command is used for changing current directory to specified directory.
syntax:- cd <directory-name>
dir/dir1:
t.txt