Tải bản đầy đủ (.ppt) (47 trang)

Unix tutorial for freesurfer users

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (170.29 KB, 47 trang )

Unix Tutorial
for
FreeSurfer Users

What is Unix/Linux?

An operating system
(like Windows and OS X)

Linux is the free, modiable, and
redistributable version of Unix

Why use it?
What is Unix/Linux?

An operating system
(like Windows and OS X)

Linux is the free, modiable, and
redistributable version of Unix

Why use it?






Getting Started
Communicate with operating system through a “shell” or terminal window.
For Linux:


Double click Terminal icon on Desktop

For Macs:
Double click on hard drive
Applications > Utilities > X11 (double click)
Applications > Utilities > Terminal
Warm Up
Type:
and hit enter.



Warm Up
Type:
and hit enter. Should see



 !" #$%&
#!!'
Warm Up
Type:
and hit enter. Should see
Type:

and hit enter.

 !" #$%&
#!!'


Warm Up
Type:
and hit enter. Should see
Type:

and hit enter. Should see

 !" #$%&
#!!'

#!!'
(&)&*
(
+#,$
"-'+!++
+#+,+$+"++-
+
+'#!#+###,#$
#"
##-##',!
Directories

Unix uses a hierarchical le system
(think folders in Windows)
Directories

Unix uses a hierarchical le system
(think folders in Windows)
Home is like
“My

Computer”
Directories

Unix uses a hierarchical le system
(think folders in Windows)
Home is like
“My
Computer”
Like “My
Document
s”
Directories

Unix uses a hierarchical le system
(think folders in Windows)
Home is like
“My
Computer”
Like “My
Document
s”
Like “My
Photos”
Directories

Unix uses a hierarchical le system
(think folders in Windows)
Home is like
“My
Computer”

Like “My
Document
s”
Like “My
Photos”
picture.jpg
Location
Type:
and hit enter. Should see
shows “present working directory” or
current location as a path
similar to:
/MyComputer/MyDocuments/MyPhotos

..
./.01
23
Opening a Directory

Not double clicking

Type command to “open”

456
Navigating Directories
“change directory”: move into a
folder
“list”: see contents of directory

77

77
Navigating Directories
“change directory”: move into a
folder
“list”: see contents of directory

77
77
%8&/&239:7%&
Anatomy of a Command
;+#5
;;
Anatomy of a Command
;+#5
;;
;;
&
Directory Contents

List contents of directory you are in
lists names of directories/les

;
;
;
Directory Contents

List contents of directory you are in
lists names of directories/les
lists hidden les too


<=87
<
<

;
;
;
Directory Contents

List contents of directory you are in
lists names of directories/les
lists hidden les too
lists le details
drwxrwx




;
;
;
Directory Contents

List contents of directory you are in
lists names of directories/les
lists hidden les too
 lists le details
lists recent les last


;
;
;
Save Some Time
Filename Completion
hit Tab key
should see hit enter
History
hit key should see
should see the recent commands
%
%
%

Changing Directories
makes a new directory “practice”
changes to directory “practice”


;



..
...
should see
should see
should see Nothing!

×