Transcript Document

Linux & Applications
Sean Gavin
Wayne State University
• multi-user environment
-- log in: user name and password
-- you never turn the computer on or off
Linux
• Linux with KDE graphic user interface
• navigation – where are my files?
• command line interface – listing, moving,
finding, copying … my files
• applications – web browsing, text viewing,
editing … my files
graphic user interface
•KDE •GNOME
makes the desktop look like a windows
desktop – point and click
home – directory browser
search for files
help
shell – terminal for entering text commands
start menu – like windows
icons
Command Line Interface
• Shell Icon – window with a “prompt”
rhic15:sean> ls
• type keyword commands – execute programs
• command “ls” lists files in a directory
• file names have format name.xxx (no blank spaces!!)
• xxx – extension indicates the files function
sean.tex
< word processor (latex)
sean.cpp, sean.f < C++ or Fortran program
momLetter.txt
< plain text (asci)
web_page.htm
< web document (html)
• no blank spaces, case sensitive
Favorite Unix Commands
• ls
•
•
•
•
•
•
•
•
•
•
•
list files
> ls
> ls *.txt
(list files with extension .txt)
ls –l list files with size, etc. > ls –l *.cpp
ls –a list all files
> ls –a
lpr
prints files
> lpr sean.txt
(default printer)
> lpr –Pmono1200 sean.txt
(specify printer)
cd
change directory
> cd MyDirectory
> cd
( home directory)
mkdir make new directory
> mkdir MyNobel
rm
remove file
> rm wrongStuff.txt
rmdir remove directory
> rm WrongStuff
(delete contents first)
cp
copy file
> cp old.txt new.txt
(keeps old.txt)
mv
move file
> mv old.txt new.txt
(kills old.txt)
more types file on screen
> more money.txt
pwd print working directory > pwd
FTP – Moving Files
Running Programs from Command Line
can type program name at the prompt to start application:
> netscape &
web browser
> ghostview pic.ps &
postscript file viewer
> gv pic2.eps &
a better postscript viewer
> acroread taxReturn.pdf &
acrobat pdf file viewer
compile and execute programs that you have written
text editors: emacs, xemacs
note: also find common programs are on the start menu
Summary
Unix – many choices, infinite possibilities
The setup at BNL, Cornell, Fermi will be different
• navigation in KDE graphic user interface
• command line interface – ls, cd, mv, cp, rm
• applications – netscape, ghost view, xemacs