Linux Commands
Linux Commands
:- 1
Aim :-
Linux Commands:-
1. echo :-
The "echo" command helps us move some data, usually text into a file. For
example, if you want to create a new text file or add to an already made
text file, you just need to type in, “echo hello, my name is abubakar >>
new.txt”. You do not need to separate the spaces by using the backward
slash here, because we put in two triangular brackets when we finish what
we need to write.
2. who :-
The who command displays the following information for each user
currently logged in to the system if no option is provided.Login name of
the users, Terminal line numbers , Login time of the users in to system ,
Remote host name of the user.
Output:-
com@com-H81:~$ who
com :0 2021-02-14 01:54 (:0)
3. date:-
Date command is used to display the system date and time. date
command is also used to set date and time of the system. By default the
date command displays the date in the time zone on which unix/linux
operating system is configured.You must be the super-user (root) to change
the date and time.
Syntax:
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY]
[.ss]]
Output :-
com@com-H81:~$ date
4. pwd :-
The pwd command is a command line utility for printing the current
working directory. It will print the full system path of the current working
directory to standard output. By default the pwd command ignores
symlinks, although the full physical path of a current directory can be
shown with an option. The pwd command is normally a shell builtin
meaning it is part of the code that runs the shell rather than an external
executable.
Output:-
com@com-H81:~$ pwd
/home/com
5. cd :-
Output :-
com@com-H81:~$ cd Desktop/
com@com-H81:~/Desktop$