Hassan Commands
Hassan Commands
Commands:
-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.
-time
time command in Linux is used to execute a command and prints a summary of real-time, user CPU
time and system CPU time spent by executing a command when it terminates. ‘real‘ time is the time
elapsed wall clock time taken by a command to get executed, while ‘user‘ and ‘sys‘ time are the
number of CPU seconds that command uses in user and kernel mode respectively.
-cal
If a user wants a quick view of the calendar in the Linux terminal, cal is the command for you. By
default, the cal command shows the current month calendar as output.
cal command is a calendar command in Linux which is used to see the calendar of a specific month
or a whole year.
-clear
For GNOME terminal in ubuntu 18.04 press `shift + ctrl + alt + c`.
-banner
banner command in linux is used to print the ASCII character string in large letter to standard output.
-tty
The tty command of the terminal basically prints the file name of the terminal connected to standard
input. tty is short for teletype, but popularly known as a terminal it allows you to interact with the
system by passing on the data (your input) to the system and displaying the output produced by the
system.
COMMANDS….
-script
script command in Linux is used to make typescript or record all the terminal activities. After
executing the script command it starts recording everything printed on the screen including the
inputs and outputs until exit.
-man
man command in Linux is used to display the user manual of any command that we can run on the
terminal. It provides a detailed view of the command which includes NAME, SYNOPSIS,
DESCRIPTION, OPTIONS, EXIT STATUS, RETURN VALUES, ERRORS, FILES, VERSIONS, EXAMPLES,
AUTHORS and SEE ALSO.
9.who
Description : The who command is used to get information about currently logged in user on to
system.
10.who am i
whoami command is used both in Unix Operating System and as well as in Windows Operating
System.
It displays the username of the current user when this command is invoked.
11.login
The login utility logs users (and pseudo-users) into the computer system. If no user is specified, or if
a user is specified and authentication of the user fails, login prompts for a user name. ...
# login. ...
COMMANDS….
# login --help.
12.password
The root user reserves the privilege to change the password for any user on the system,
while a normal user can only change the account password for his or her own account.
13.su
As a general rule, su command uses the following syntax: su [OPTIONS] [USER [ARGUMENT...]]
As soon as the root password is prompted, the user running the command becomes root instantly.
14.pwd
pwd stands for Print Working Directory. It prints the path of the working directory, starting from the
root.
$PWD is an environment variable that stores the path of the current directory. This command has
two flags.