0% found this document useful (0 votes)
15 views3 pages

Hassan Commands

Uploaded by

yoratet699
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

Hassan Commands

Uploaded by

yoratet699
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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

Clear Using `CTRL + L` Shortcut in Linux System.

We can clear our terminal by using short cut `CTRL+L`.

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

who command is used to find out the following information :

1. Time of last system boot

2. Current run level of the system

3. List of logged in users and more.

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 is basically the concatenation of the strings “who”,”am”,”i” as whoami.

It displays the username of the current user when this command is invoked.

It is similar as running the id command with the options -un.

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 -p. ...

# login -f. ...

# login -V. ...

# login --help.

12.password

passwd command in Linux is used to change the user account passwords.

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

"su" commands in Linux

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 shell built-in command(pwd) or an actual binary(/bin/pwd).

$PWD is an environment variable that stores the path of the current directory. This command has
two flags.

You might also like