18
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix based command interface. All commands follow the $ prompt.

Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Embed Size (px)

Citation preview

Page 1: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Log-in to the Unix Server

A successful log-in

allows access to the

server through the

Secure Shell.

SSH, also known as

Secure Shocket Shell, is

a Unix based command

interface.

All commands

follow the $ prompt.

Page 2: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

List Folders in the

Root Directory

ls

The list command

shows all the

files in the directory.

Page 3: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Open a Directory cd foldername

eg. cd public_html

This command

allows the user

to change from the

root directory to a

subdirectory.

Page 4: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Return to the Root Directory

cd ~

This returns the

command prompt

directly back to

the root

directory

Using the (ls) command

after the (cd ~)

command showed the

files in the root

directory.

Page 5: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Create a New

Directory

mkdir foldername

Eg. mkdir mlis

The make directory

command is followed

by a directory

name to

create a new

directory.

Page 6: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Move Into a

New Directory

cd filename

eg. cd mlis

The cd filename

command moves

the prompt into a

new

directory.

Page 7: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Show History

history

The history

command shows

the last 10

typed commands.

This could

be helpful to

a user who doesn’t

want to search a lot

of text to see his

past commands.

Page 8: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Display Current Date & Time

date

The date command

allows the user to

view the date. It

would be helpful

for someone

who is

working on a

deadline to easily

note the time.

Page 9: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Display Users Who Are

Logged Into the Server

who

The who command

allows users to see

who is active on the

website.

(I noticed some of

my cohorts also on

the server.)

Page 10: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Display Current

Monthly Calendar

cal

The calendar command

shows the current

monthly calendar and

would be helpful to

someone

trying to coordinate

their schedule

while communicating

with another user

on the server.

Page 11: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Delete Directoryrmdir filename

Eg. rmdir mlis

The remove directory

command allows a

user to delete

directories

that are no longer

necessary.

The (ls) command

confirmed that the

directory was deleted.

Page 12: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

List of Files in the

Root Directory

ls –l

The list command

allows user to look

at the

directory and a

list of files is

generated to show

the permissions for

each directory.

Page 13: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

The Meaning of

DRWXR

This is a directory (d)

showing if the user

has read (r),

write (w), and

execute (x)

permissions.

Page 14: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Search for a Specific Word

grep filename

eg. grep holly index.html

Searching for a specific

word within a file can be

done with the command

global regular

expression print and the

word the user is

searching for.

Page 15: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

LOG OUT of Unix

exit

The exit command

allows the user to

log out of the Unix

system successfully.

It is best

practice to always

log out to keep

information secure.

Page 16: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Calendar for previous dates

cal <mo> <yr>

Eg. Cal 12 1965

This command

shows the calendar

for previous months

and years. It would

be an helpful

command for a user

who is looking for the

day that a meeting

was held in the past.

Page 17: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Disk free

df

This command

shows how much

disk space is

available and would

be helpful for a user

who needs to

create more space.

Page 18: Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix

Why is the Mastery of Command Line Unix Important?

A majority of webservers on the internet are Unix based,

using either Linux or some other flavor of Unix-like

operating system so it’s important to understand the inner

workings of Unix. The skill is valuable to have as

has practical applications for an Informational Technology

professional.