Presentation is loading. Please wait.

Presentation is loading. Please wait.

EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands.

Similar presentations


Presentation on theme: "EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands."— Presentation transcript:

1 EMT 2390L Lecture 2 Dr. Reyes

2 Outline What is the Shell Basic commands Linux Filesystem System commands

3 What is the Shell? Shell - a program that takes keyboard commands and passes them to the operating system to carry out Types of Shells: o C-Shell: csh, tcsh o Bourne Shell: sh o Bourne Again Shell: bash When using a GUI, a terminal emulator is used to interact with the shell o KDE uses konsole o GNOME uses gnome-terminal

4 Shell Prompt

5 Session Privileges Prompt ending with: o $ - regular user, privileges varies o # - superuser

6 Command History Press up-arrow key for previous command Press down-arrow key for next command Press left-arrow key to move back in the same line Press right-arrow key to move back in the same line Limited support for mouse interaction Some keyboard shortcuts might not work, as they belong to Windows: o Ctrl-C o Ctrl-V

7 Commands Try the following commands: o date – displays the date o cal – displays the calendar o df – disk available o free – memory available o exit – to exit the system

8 Filesystem Tree Linux uses hierarchical directory structure o Tree-like structure o Root – First directory o Drives are not separate trees, instead they are mounted o You can see the files and the parent of the current directory o Each user account is given it’s own home directory

9 Commands for Directories pwd - lists the current working directory ls – lists the files and sub-directories in the current working directory cd – change to the specified directory o cd /usr/bin – changes to dir /usr/bin o cd / - changes to root dir Special parameters o. (dot) – current directory o.. (double dot) – parent directory o - (dash) – changes to the previous working directory o ~ (tilde) – changes to your home directory o ~username – changed to home directory of username

10 Linux Filenames Facts Filenames that begin with a period character are hidden. To display them use ls –a Filenames are case sensitive In Linux there are no file extensions such as.doc or.exe Avoid using spaces and special characters even if is supported.

11 Other uses of ls Try the following options with ls o ls /usr o ls ~ /usr o ls – l Most commands have options and argument o command –options arguments o options might be a dash and a single character or two dashes followed by a word

12 ls Options

13 ls –l What all that means?

14 Commands for files To get the file type o file filename To read a file o less filename o less is better than more

15 Some Linux Directories

16

17

18

19

20

21 Assignments Check the class OpenLab site for new Labs o Lab 0 is mandatory. Check Blackboard for new Quizzes o Quiz 0 is mandatory. ©1992-2012 by Pearson Education, Inc. All Rights Reserved.


Download ppt "EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands."

Similar presentations


Ads by Google