You are on page 1of 11

This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative

Works 3.0 Unported License.

UBUNTU LESSON 8
terminal
Ubuntu,
- pwd ls.
terminal
DOS Windows . terminal
.
terminal terminal Applications Accessories
.

terminal ,
command prompt :
michail@Ubuntu:~$
command prompt (michail)
terminal .
http://www.free-lessons.gr The Center of Knowledge

.
@
Unix. (Ubuntu)

.
( : )
directories.
( ~ ) directory .
~ /home/michail.
, ( $ )
root.
root $ #.
command prompt
shell. Shell
(kernel).
terminal . shell text
.
shell DOS,
. DOS
, shell
.
shell terminal
, shells .
Ubuntu BASH (Bourne Again Shell).
PDKSH ZSH.
Ubuntu
. BASH scripts.
shell , BASH,
.
terminal.
. , Windows
,
Applications . Linux
.
shell.
,
.
BASH shell
. BASH shell .
,
BASH .

Ubuntu. echo $PATH directories
http://www.free-lessons.gr The Center of Knowledge

BASH . directories
.

,
BASH shell. home directory.

http://www.free-lessons.gr The Center of Knowledge

./ . BASH
directory home directory .

Ubuntu
directories root directory ( / ).
,
.
forward slash ( / ) directory
.
Terminal,
File directory . pwd
directory .

michail log in , pwd


directory
. default directory
.
, .
ls.
directory .

http://www.free-lessons.gr The Center of Knowledge

directory michail,
Places --> Home Folder Nautilus (
Ubuntu) home .


ls directory.

ls .
(switches)
.
ls, man . Unix

. man .
man unix .

http://www.free-lessons.gr The Center of Knowledge

, ENTER
manual .
manual , SPACE BAR .

. .
-a, all :

( . ) .
directory.
administrators
( . ).
( ) ls -a ( . )
( .. ). ( . ) directory ,
( .. ) directory directory
home.

http://www.free-lessons.gr The Center of Knowledge

-A, almost-all : ( . ) ( ..
) ls - .

-d, --directory : ls directory (


),
directory. -d --directory

directory.

-l : directories
(
) ( : d directory, l link),
( ), (hard links)
( ),
, , ,
, .

http://www.free-lessons.gr The Center of Knowledge


. -a l ls .
( )
. hard links
. hard links
.
directory.

-F : ls,

directory, socket, pipe, symbolic link.
. .
,
.

http://www.free-lessons.gr The Center of Knowledge

@ Examples directory.
/ directory
@ symbolic link
= socket
| pipe
* executable file (binary)

--author : --author
-l .
michail .

-c -t: o . c , -t .

http://www.free-lessons.gr The Center of Knowledge

-r :
. Terminal
.
ls
- r.

-x : .
, directory
Examples .

-m : O -m .
directory Examples
.

http://www.free-lessons.gr The Center of Knowledge

-R : directories (hard links)


(symbolic links).
directory Examples ls -R.

--color={never, always, auto} : --color


directories ls
. directory Examples symbolic link
directories hard links.

ls.
( ) directory
.


Michail.Kassapoglou@free-lessons.org
http://www.free-lessons.org

http://www.free-lessons.gr The Center of Knowledge

You might also like