Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linux introduction. Why Linux? Powerful (remote) shell.

Similar presentations

Presentation on theme: "Linux introduction. Why Linux? Powerful (remote) shell."— Presentation transcript:

1 Linux introduction

2 Why Linux? Powerful (remote) shell

3 Starting with Linux Start a terminal window

4 Terminal

5 Who

6 Where

7 What

8 Details

9 The Linux Manual pages penguin@bioinfc01:~> ls –l What does the “ -l ” option do? penguin@bioinfc01:~> man ls NAME ls - list directory contents... -l use a long listing format …

10 Directory structure

11 /homehome directories for the users /etcsystem configuration files /varsystem log files /binprograms /usr/binprograms /sbinadministrator programs /usr/sbinadministrator programs /tmptemporary work space /mntnetwork disks /mediaCD-rom/DVD/USB sticks

12 The root directory

13 A closer look at a file

14 File/Directory permissions penguin@bioinfc01:~> ls -l drwxr-xr-x 2 penguin users … scripts drwxr-xr-x -Directory (yes/no) -right for user, group and others -read, write and execute/open directory Access flags owner groupfile/directory name user group other

15 Running the Perl script

16 Where is the perl program?

17 Processes

18 Stopping a process

19 The root account The adminstrator account on a Linux system is called 'root' You need it to install new software







26 Usefull linux commands commanddescription pwdPrint the name of the current directory lsshow the files in a directory manOpen the manual page for a certain command cdChange directory fileExamine a file morePrint the contents of a text file (try also ‘less’) perlRun a perl script psList the running processes topList the active processes, updating killTerminate a process, try also 'pkill' and 'kill -9'

27 and more... commanddescription exitClose the current shell (also ctrl+d) sshOpen a connection to a remote computer cpCopy a file to a new location mvMove a file to a new location (or rename a file) rmRemove/delete a file mkdirCreate a new directory rmdirRemove a directory echoPrint a text findFind a file grepFind a text in one or more files

28 and even more... commanddescription screenstart a virtual terminal, if you want to switch off PC scpsecure network copy catprint the contents of a file to the terminal watchmonitor the output of a shell command tailprint the last lines of a text file, continuously headprint the first lines of a text file tarcreate of read a tarball archive gzipzip a file, use gunzip to unzip dateprint current date/time lncreate a (soft) link to a file, like a shortcut

29 ... commanddescription suswitch to another user, default is 'root' sudoact as another user, password required zypperinstall new software, other flavours: apt-get, yum rebootreboot Linux shutdownshutdown the Linux environment printenvprint the environment variables setenvset the environment variables, depends on shell passwdchange your password

Download ppt "Linux introduction. Why Linux? Powerful (remote) shell."

Similar presentations

Ads by Google