Linux-1

Linux is an open source operating system made by Linus Torvalds by Linux distribution.

Why use Linux?

Linux is free on cost, it is an open source platform. Unlike windows linux is highly customizable and secure to use.

Basic Commands
Echo

It is used to display the text or echo the text written after it.

Syntax: echo aayush

Output: aayush

Man

It is used to display manual page for any commands which one can use. It tells description for command and options how to use the command.

Syntax: man echo

Output:
NAME
       echo - display a line of text

SYNOPSIS
       echo [SHORT-OPTION]... [STRING]...
       echo LONG-OPTION

DESCRIPTION
       Echo the STRING(s) to standard output.

       -n     do not output the trailing newline

       -e     enable interpretation of backslash escapes

       -E     disable interpretation of backslash escapes (default)

       --help display this help and exit

       --version
              output version information and exit
Sudo

This command is used for executing an action with maximum privileges or root/admin privilege.

Lets’ say if echo command is not working by stating error that no permission. But after using sudo the command will ask you for the sudo password, if the password is correct th echo command will be executed.

LS

It is used to list the contents/files in any directory.

Syntax: ls

Output: List of directory items.

Touch

It is used to create file.

Syntax: touch new.txt

./

It is used to run or execute a file.

Syntax: ./filename

su

It is used to switch user.

Syntax: su <username>


Discover more from Information Security Blogs

Subscribe to get the latest posts sent to your email.

Leave a comment

Discover more from Information Security Blogs

Subscribe now to keep reading and get access to the full archive.

Continue reading