THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

Size: px
Start display at page:

Download "THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering"

Transcription

1 THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG224 Information Technology Part I: Computers and the Internet Laboratory 2 Linux Shell Commands and vi Editor Objective: To practice the usage of Linux shell commands and vi editor Equipment: 1. Red Hat Linux vi editor. Methodology: Start up the system with your own Linux partition. Consult your tutor for the partition assigned to you. Login the system with username guest. Consult your tutor for the password required. Answer all the questions in this lab sheet and submit it to the tutor before you leave the laboratory. 1. Introduction What is a shell? The shell is the command line interface to Linux. It is similar to the Microsoft DOS prompt as known to Windows users, but is much more powerful with its scripting languages. Currently the standard setup of Linux has included two shells, bash and tcsh. What is a shell command? Users coming from the DOS environment are probably familiar with the concept of commands that encompass core features of the operating system, such as DIR, COPY, and ATTRIB. These commands provide the base on which more complicated actions could be built and from which sophisticated batch files could be written. But in the DOS world, as in many operating systems, the number of available commands is limited and generally static: users cannot add new commands. In Linux, and also in Unix, the concept is different. A command is any executable file. This means that any executable file added to a system becomes a new command on the system. How to use Linux Shell inside the X-Window system? A terminal emulator is a program that opens up a window and then runs a shell in that window. It could be compared to the DOS prompt in Windows. You start a terminal emulator like any other X program, so it means that you can have a command line while you are still safely in the GUI! There are a bunch of different terminal emulators out there, like xterm, rxvt, gnome-terminal, konsole, kvt, eterm, and many others. We use gnome-terminal to practice the exercise in this tutorial. Page 1

2 Open a console window by pressing the lower-left corner button and choose System tools, then Terminals. A terminal window similar to the one on Figure 1 will be shown. 2. Common Linux Commands Figure 1 a. Find the usage of commands If you don t know how to use the Linux shell commands, you can use man command to show you the usage of them. Usage: man <command-name> Example: man cd (press q when you finish reading the manual of cd) b. Finding out where you are The pwd command (which stands for present working directory) is the most basic of the three commands. By typing the command and hitting Return, you will be informed of which directory you are currently in. Usage: pwd Exercise 2.1 Type pwd in the command line. What is the result? Page 2

3 /home/guest Normally, every time when you open a terminal console, it would begin in your home directory. And the home directory is often located at /home/ <user name>. As we have login as guest, so our user name is guest and the command would give us /home/guest as the present working directory. c. Change directory The cd command allows you to change your current directory to any accessible directory on the system. Usage: cd <directory> Example: cd /usr/x11r6/bin d. Listing the contents of a directory The ls command can be used to view the contents of the current directory. Usage: ls [option] <filename> Example: ls al / Exercise 2.2 Type cd / and ls in the command line. What is the result? bin dev home lib misc opt root tmp var Boot etc initrd lost+found mnt proc sbin usr When we enter cd /, we have changed our present working directory to the root directory /. Then when we use ls, all files resided in the root directory / will be listed out. Exercise 2.3 Type these commands cd /usr/x11r6/, cd./bin/, cd.., and pwd. Give the current directory which you are located. What are the meanings of. and..? /usr/x11r6. current directory... parent directory. When we enter cd /usr/x11r6, our present working directory will be changed to /usr/x11r6, then when we enter cd./bin/, we will go into /usr/x11r6/bin. After cd.., we go into /usr/x11r6 again. Therefore, we can deduce the meaning of. and.. respectively. e. Find, Grep and Cat Page 3

4 The find and grep commands are powerful tools for searching files. While both commands are used for searching, their purposes differ: find is used to search for files by a number of criteria, including name or date of creation. grep is used to search the contents of files. The cat command combines one or more files and displays them on the standard output. If no files are given, the standard input is written to the standard output. Usage of find command: find <starting-directory> <parameters> <actions> Usage of grep command: grep <text-pattern> <file-list> Usage of cat command: cat <options> <filename> Exercise 2.4 Type "cd" to go back to your home directory. Type cat > testcat.txt in the command line. After pressing return, type the following line of text This is a test of cat., and then press crtl-d. Type cat testcat.txt again. What do you see? This is a test of cat. We have to change our present working directory back to the home directory by cd, as we are not permitted to create any file in the root directory /. From the manual page of man cat, we know that the command cat will concatenate files or standard input and print on the standard output. Therefore, through cat, we can make the computer to repeat every line we type. In other words, we type from the standard input and the computer repeats it in the standard output. For the command cat > testcat.txt above, the symbol > allows the output of the command cat (the keyboard input of user) to store into a file namely testcat.txt. Through cat > testcat.txt, we redirect the output from cat to a file called testcat.txt. As the output of cat is essentially the standard input which is also the line we have typed in. Therefore, testcat.txt contains This is a test of cat. Exercise 2.5 Type find. -name testcat.txt -print in the command line. What is the result? What are the purposes of the options -name and -print (use man to find out their meanings)?./testcat.txt From the manual of find, we know that it can search for files in a directory hierarchy. The way to call this command is, find [path ] [expression]. Also, we can find that the -name option is one of the expressions which allows us to specify the search pattern. While the -print option is another expression which allows us to print the full file name on the standard output, followed by a new line. Therefore, the meaning of find. name testcat.txt print is actually asking the computer to look for a file named testcat.txt in the current directory and print it out in the full file name format on the standard output. Page 4

5 Exercise 2.6 Type find. -name testcat.txt print > list.lst in the command line. You will find a file list.lst in your current directory. Use cat commands to show its contents. What is the result? What is the meaning of > list.lst? Same as 2.5 > list.lst means to redirect the output result of the previous statement to the file list.lst. After we have issued the command find. name testcat.txt print > list.lst, the computer did not print out anything! In fact, a file list.lst has already been created; we can check this out by ls. The left hand side of this command is the same as 2.5, so we would expect./textcat.txt to be printed out. However, this message has been redirected to the file list.lst, so no message will be printed. And the redirected message./textcat.txt could be found in list.lst by viewing its contents. Recall the function of cat ; it will concatenate files or standard input and print on the standard output. Therefore, we can view the content of the file by cat list.lst. Exercise 2.7 Go to / directory and type ls l grep bin in the command line. What is the result? What is the function achieved by this line of commands? (The character refers to pipe. It allows the output from the left hand side of to become the input of the command on its right hand side.) drwxr-xr-x 2 root root 4096 Sep bin drwxr-xr-x 2 root root 4096 Sep sbin Firstly, we change to the root directory by cd / and then ls l grep bin. We find out that only two lines containing bin and sbin were shown. However, if we neglect the right hand side command and try ls l, many more lines will be shown. The description from the man page man grep tell us that it searches the standard input for lines containing a match to the given PATTERN and print the matching lines. And the PATTERN now is bin, therefore, the whole command is to redirect the output of ls l as the standard input to grep bin, so that any file or sub-directory in the root directory / will be listed out. In fact, we can separate the above operation into two parts with an intermediate file. Firstly, we can ls l > /home/guest/temp, redirects the output to a file first. We shall read the whole list by cat /home/guest/temp. Then, we can pass it to grep by cat /home/guest/temp > grep bin. We will obtain the same result. The remove us the need of a temporary file in doing such redirection. What are the difference between and >? Is it possible to use ls l > grep bin instead of? 3. File Management Linux Commands Page 5

6 a. Copying files and directories To copy files, you can use the mv or cp commands. The command line mv file1 file2 allows one to move file1 to file2. file1 will no longer exist after the operation. So functionally it is similar to renaming a file. cp on the other hand copies one file to another. The following will copy file1 to file2. Note that if file2 does not exist, it will be created; but if it exists, it will be overwritten: Usage: cp file1 file2 There are not undo commands in Linux, so accidentally overwriting an important file would probably make you pull your head off. The risk of doing so is smaller if you use the -i option ("interactive") with cp. The following does the same as the above, but if file2 exists, you will be prompted before overwriting: Usage: cp i file1 file2 If you want to copy file1 into directory dir1: Usage: cp file1 dir1 The following would do the same as the above, copy file1 into dir1, but under a different name: Usage: cp file1 dir1/file2 You can also copy multiple files into one directory with a single command: Usage: cp file1 file2 file3 dir1 For copying directories, you can use the cp and mv commands just like you use them with files. If you have already tried to copy a directory with cp, you should have probably noticed that cp just complains at you. The cp command wants you to use the -r option if you want to copy a directory with its contents. The -r means "copy recursively": Usage: cp -r dir1 dir2 Exercise 3.1 Change to your home directory. Create a subdirectory called guestsub using the command mkdir guestsub. Copy the files testcat.txt and list.lst to guestsub. While staying at your home directory, copy./guestsub to another directory called./guestsub2? Give the command that you have used. mkdir guestsub cp testcat.txt guestsub/ cp list.lst guestsub/ cp -r guestsub guestsub2 First, we go back to our home directory by cd. Then, we create the new directory by mkdir guestsub. Then we copy those files into the sub-directory. We can do this separately by cp testcat.txt guestsub/ and cp list.lst guestsub/ or we can done this at the same time cp testcat.txt list.lst guestsub/. Now, we should be able to see two copies of these files, one in. and the other one in./guestsub, we can use ls. and ls./guestsub to verify it. Now, we want to copy the directory./guestsub to another Page 6

7 directory./guestsub2. We have to use cp r guestsub guestsub2, since guestsub is a directory. By issuing the -r, the recursive option to cp, we are able to copy a directory as well as its content to another. Remember to use the -r option whenever you want to copy a directory. You should be able to find three copies of these files now, in.,./guestsub and./guestsub2. Exercise 3.2 Rename the guestsub2 directory to guestsub3 using mv. Give the command that you have used. mv guestsub2 guestsub3 Before we rename the directory, we may enter ls l and mark down the creation time of the directory guestsub2 first. From the manual page man mv, we know that this function can be used in this way, mv [option]... source dest. As we do not require any additional option, so we can issue the command as mv guestsub2 guestsub3. Now, when we ls -l, we can no longer see the directory./guestsub2, instead we have a directory named./guestsub3. However, when we check its creation time, it will be equal to the creation time of guestsub2. Therefore, we have only renamed the directory but not created a new one. b. Deleting files and directories The rm command is used for removing files. To remove a file: Usage: rm file1 If you use the -i option, you'll be prompted before removing the file: Usage: rm -i file1 You can also delete more files at once: Usage: rm file1 file2 There are two commands you can use for removing directories. If the directory is empty, you can use rmdir: Usage: rmdir dir1 You can use rmdir only if the directory is empty. If you want to remove a directory with all its contents, you can use rm with the -r option. The -r option tells rm to remove a directory recursively: Usage: rm -r dir1 It goes without saying that you can cause a lot of trouble with rm -r if you are not careful. In some cases it might be a good thing to use the -i option when deleting a directory with its contents so that you would be prompted before each file in the directory gets deleted: Usage: rm -ir dir1 Be careful with the rm command! Linux does not have any undo commands, and it does not put files into Trash where you can save them later. Once you have deleted a file, it is permanently deleted from the file system. Page 7

8 Exercise 3.3 Delete the directory guestsub3 inside your home directory. Give the command that you have used. rm -r guestsub3 From the manual page man rm, we know that to remove a file we can issue the command as rm [option]... file... As we have to remove the whole directory now, we should use the -r recursive option. 4. vi Editor a. Introduction to vi editor The vi editor is a command-based editor used by many Linux users. The vi editor has powerful features to aid programmers, but many beginning users avoid using vi because the plentiful features overwhelm them. Although there are quite a lot of graphical based text editor provided by different distributions of Linux, learning vi is still important because in many situations, such as for server configuration, graphical user interface is not available. Text editing has to be done with commandbased editor like vi. This tutorial is written to help beginners get accustomed to using the vi editor, but also contains sections relevant to regular users of vi as well. Examples are provided, and the best way to learn is to try these examples, and think of your own examples as well. There is no better way than to experience things yourself. b. Starting the vi Editor The vi editor lets a user create new files or edit existing files. The command to start the vi editor is vi, followed by the filename. Usage: vi <filename> Example: vi test.txt When you start vi for the first time, you will see a screen filled with tildes (A tilde looks like this: ~ ) on the left side of the screen. Any blank lines beyond the end of the file are shown this way. At the bottom of your screen, the filename should be shown if you have specified an existing file, and the size of the file will be shown as well, like this: "filename" 21 lines, 385 characters If the file you specified does not exist, it will tell you that it is a new file, like this: "newfile" [New file] Page 8

9 Exercise 4.1 Go to your home directory. Use vi editor to open the file testcat.txt. What is the statement showing at the bottom of the editor? testcat.txt 1L, 16C To open this file in vi, we should issue vi testcat.txt. We can also execute vi by vi alone. However, we have to read in the file by ourselves then. To do so, change to command mode, which will be taught later, and then :r testcat.txt. c. The two modes of vi The first thing most users learn about the vi editor is that it has two modes: command and insert. The command mode allows the entry of commands to manipulate text. These commands are usually one or two characters long, and can be entered with few keystrokes. The insert mode puts anything typed on the keyboard into the current file. vi starts out in command mode. There are several commands that put the vi editor into insert mode. The most commonly used commands to get into insert mode are a and i. Once you are in insert mode, you get out of it by hitting the escape key. You can hit escape two times in a row and VI would definitely be in command mode. Hitting escape while you are already in command mode does not take the editor out of command mode. It may beep to tell you that you are already in that mode. Exercise 4.2 Move the cursor to the beginning of the file. Press i to go to insert mode. Insert the following characters This is a test.. What is the statement showing at the bottom of the editor? -- INSERT -- d. Getting out of vi Now that you know how to get into vi, it would be a good idea to know how to get out of it. The vi editor has two modes and in order to get out of vi, you have to be in command mode. Hit the key labeled "Escape" or "Esc" to get into command mode. If you are already in the command mode when you hit "Escape", don't worry. It might beep, but you will still be in the command mode. Exercise 4.3 Make sure that you are in command mode. Type :q and press <RETURN> key. What is that warning statement shown?? E37: No write since last change (add! to override) Page 9

10 The command to quit out of VI is :q. Once in command mode, type colon, and 'q', followed by return. If your file has been modified in any way, the editor will warn you of this, and not let you quit. To ignore this message, the command to quit out of vi without saving is :q!. This lets you exit vi without saving any of the changes. Of course, normally in an editor, you would want to save the changes you have made. The command to save the contents of the editor is :w. You can combine the above command with the quit command, or :wq. You can specify a different file name to save to by specifying the name after the :w. For example, if you want to save the file you are working as another filename called filename2, you would type :w filename2 and return. Exercise 4.4 Make sure that you are in command mode. Use :w to save to a file with name testcat2.txt. What is that statement? :w testcat2.txt testcat2.txt [New] 1L, 32C Sometime you may have executed in a wrong directory where you are not able to save the file. As a remedy, you may add the path of your home directory before in front of the file name. Suppose your home directory is /home/guest, then you may use :w /home/guest/testcat2.txt. Indeed, there is also a shorthand for the path of your home directory, which is ~. Therefore, you may also use :w ~/testcat2.txt. e. Some simple vi commands i. Cutting, Deleting and Undo commands The command commonly used for cutting is d. This command deletes text from the file. The command is preceded by an optional count and followed by a movement specification. If you double the command by typing dd, it deletes the current line. Here are some combinations of these: x : delete character under the cursor. d^ : deletes from current cursor position to the beginning of the line. d$ : deletes from current cursor position to the end of the line. dw : deletes from current cursor position to the end of the word. 3dd : deletes three lines from current cursor position downwards. u : undo the last change to the file. Typing u again will re-do the change. Exercise 4.5 Insert a string at the bottom of the line This is a tutorial of vi editor!! Then, make sure you are in command mode. Move the cursor to the first character of this line and type x. What is the result? Then type u in command mode. What did you see? 1. "x": "T" in the first character of the first line is deleted. 2. "u": "T" is recovered. Page 10

11 Exercise 4.6 Move the cursor to the beginning of this document. Try the following commands: dw, d$, and 2dd in sequence. Drop down what happen when executing each command. dw: "This" of "This is a test." is deleted. d$: All content of the first line is deleted. 2dd: All content of the file is deleted. "-- No lines in buffer--" is displayed in the bottom of screen. ii. Copying and pasting commands By now, you should be comfortable with moving around a file rapidly, editing text, cutting and deleting text. It is time to work on a more complex text manipulation: copying and pasting text. y : copy selected characters to the system buffer p : paste the system buffer to the current cursor position Exercise 4.7 Use vi to edit testcat.txt. Move the cursor to the first line of this document. Insert the three lines of text This is the first line.<return>this is the second line.<return>this is the third line.<return> Go to command mode. Move the cursor to the beginning of the second line. Type v to go to visual mode. What is the statement at the bottom of the screen? -- VISUAL -- Exercise 4.8 In the visual mode, you can move your cursor to select the text. When you selected the text area, the front and background color will been changed inversely. Select the second line and then, type y key. Move the cursor to the bottom of the document. Type p key. What is the result? This is the first line. This is the second line. This is the third line. This is the second line. iii. Search commands The vi editor has two kinds of searches: string and character. For string search, the / and? commands are used. When you use these commands in the command mode, the command just typed will be shown on the bottom line. You should then type the string to look for. These two commands differ only in the direction where the search takes place. The / command searches forwards (downwards) in the file, while the? command searches backwards (upwards) in Page 11

12 the file. The n and N commands repeat the previous search command in the same or opposite direction, respectively. Exercise 4.9 Move the cursor to the first line of this document. Type /the*. What is the result? How to search the next the* downward? 1. All "the" and "th" is highlighted. 2. "/"<return> The search pattern /the* will search for any combination of words beginning with th and followed by zero to multiple numbers of e. In other words, both th, the, thee, theee, etc, will be found out. One may ask why could not we just search for th? What is the purpose of e* while an absence of e would still match anyway? Now suppose we are going to search for words in the form like thre, there, theere, theeere, etc, then we have to use the pattern the*re. If we use th as the search pattern, we will obtain many other more irrelevant matches. Exercise 4.10 Open a file called testvi.txt in your home directory. Use vi to type the following paragraphs. You are requested to type the text in the same format as what is shown below. Remember to type your name and student number onto the file The paragraphs that you need to type start from the next line Name:<your own name> Student no.:<your own student number> The vi editor has two kinds of searches: string and character. For string search, the / and? commands are used. When you use these commands in the command mode, the command just typed will be shown on the bottom line. You should then type the string to look for. These two commands differ only in the direction where the search takes place. The / command searches forwards (downwards) in the file, while the? command searches backwards (upwards) in the file. The n and N commands repeat the previous search command in the same or opposite direction, respectively The End File Access Permission Linux is a multiuser system. The files of all users are stored in the same file structure. A mechanism is provided such that one user is restricted from accessing the files of other users. In fact, each file is associated with access permission. Based on such permission, security to users files can be achieved. Page 12

13 Exercise 5.1 Go to / and use ls l to see the details of the directory /boot. Who are the owner and the owner group of /boot? owner: root owner group: root Take note that the root in the field of owner represents the directory is owned by the user root while the owner group of this directory is the user group root. There can only be one user root but there can be multiple users belong to the user group root. Exercise 5.2 Give the current access permission of /boot. rwxr-xr-x Take note that the execution permission is required in order to gain access to a directory. Without the execution permission, you will not be able to enter the directory. This execution right bears a different meaning to directory and an ordinary file. An execution right to an ordinary file means that this file is an executable program and who have its execution right can execute it. Exercise 5.3 Change to your home directory. Use ls l to see the details of guestsub. Who are the owner and the owner group of guestsub? Give the current access permission of guestsub. owner: guest owner group: guest access permission: rwxrwxr-x Exercise 5.4 Copy the testcat.txt in your home directory to /boot. Can you do so? If not, why? What is the error message? It can t. It is because /boot does not give the right for other group user to write. Error message: cp: cannot create regular file /boot/testcat.txt : Permission denied. Exercise 5.5 Use the command chmod to change the access permission of guestsub to 600 (use man to see how to use chmod). Try to use cd to change the current directory to guestsub. Can you do so? Why not? What is the error message? It can t. It is because after changing the access permission to 600, even the user himself does not have the execution right. Hence he cannot get into that directory. Error message: bash: cd: guestsub: Permission denied. 6. Process Management Linux is a multitasking system. It means that multiple programs can be executed at the same time. Since all programs must be executed by the CPU and very often there is only one CPU in a computer system, a mechanism is provided by Linux to schedule the work that should be executed by the CPU at a particular time. A program that is claimed Page 13

14 to be executing is called a process. A user can keep track of the processes in a Linux system by using the command ps. Exercise 6.1 Open two terminals on Linux. In each terminal, type the command ps. Give the process number of the bash process in both terminals. Why they are different? pts/ pts/ They are different because they are in fact two different processes although having the same name. A different process number is essential to the identification of a process since both of these processes are created from the same program /bin/bash. There are no other means for us to identify them except the process number, since they may be created by the same user at the same time. Exercise 6.2 Start the Mozilla web browser "mozilla" and type ps again in both terminals. Can you see the process of Mozilla web browser? If not, why? They can t. It is because ps by default only show the processes running in its terminal. Mozilla uses a window to execute the program. Hence it is not a process running on either of the terminal. Exercise 6.3 Try to use the command ps Al. Can you see the processes of Mozilla? What are their process numbers and state (check your course notes for the meaning of state)? From the output of the command, name one process that is in running state. There are 2 processes. Their process numbers are 1258 and They are sleeping. Exercise 6.4 Use the command kill to kill the processes of Mozilla. Give the command you have used. What did you see after killing their processes? kill and kill The Mozilla window disappears. The kill command is not only capable of killing a process. Actually, its main function is to send a signal to another process. The command kill is indeed a command to send the signal 9 to process Now, what is signal 9? You may look it up by man signal S 7. In the table, you will find that signal 9 means SIGKILL and its action is AEF, which are Default action is to terminate the process, Signal cannot be caught and Signal cannot be ignored. It means that any process must accept this signal without ignoring it, once received, it has to terminate. Therefore, issuing this SIGKILL signal to any process must kill it. DL/ENG224_Lab2.doc Aug.04 Page 14

Mills HPC Tutorial Series. Linux Basics I

Mills HPC Tutorial Series. Linux Basics I Mills HPC Tutorial Series Linux Basics I Objectives Command Line Window Anatomy Command Structure Command Examples Help Files and Directories Permissions Wildcards and Home (~) Redirection and Pipe Create

More information

Chapter-3. Introduction to Unix: Fundamental Commands

Chapter-3. Introduction to Unix: Fundamental Commands Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system

More information

Introduction to Unix: Fundamental Commands

Introduction to Unix: Fundamental Commands Introduction to Unix: Fundamental Commands Ricky Patterson UVA Library Based on slides from Turgut Yilmaz Istanbul Teknik University 1 What We Will Learn The fundamental commands of the Unix operating

More information

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech Unix File System Class Meeting 2 * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech Unix File System The file system is your interface to: physical

More information

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Objective: Learn some basic aspects of the UNIX operating system and how to use it. What is UNIX? UNIX is the operating system used by most computers

More information

Unix Filesystem. January 26 th, 2004 Class Meeting 2

Unix Filesystem. January 26 th, 2004 Class Meeting 2 Unix Filesystem January 26 th, 2004 Class Meeting 2 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty at Virginia Tech Unix Filesystem! The filesystem is your interface

More information

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester Linux Essentials Programming and Data Structures Lab M Tech CS First Year, First Semester Adapted from PDS Lab 2014 and 2015 Login, Logout, Password $ ssh mtc16xx@192.168.---.--- $ ssh X mtc16xx@192.168.---.---

More information

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical

More information

h/w m/c Kernel shell Application s/w user

h/w m/c Kernel shell Application s/w user Structure of Unix h/w m/c Kernel shell Application s/w. user While working with unix, several layers of interaction occur b/w the computer h/w & the user. 1. Kernel : It is the first layer which runs on

More information

Physics REU Unix Tutorial

Physics REU Unix Tutorial Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component

More information

Lab 3a Using the vi editor

Lab 3a Using the vi editor Lab 3a Using the vi editor Objectives: Become familiar with the vi Editor Review the three vi Modes Review keystrokes to move between vi modes Create a new file with vi Editor Invoke vi with show mode

More information

Outline. Structure of a UNIX command

Outline. Structure of a UNIX command Outline Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission (owner, group, rwx) File and directory

More information

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

INTRODUCTION TO LINUX

INTRODUCTION TO LINUX INTRODUCTION TO LINUX REALLY SHORT HISTORY Before GNU/Linux there were DOS, MAC and UNIX. All systems were proprietary. The GNU project started in the early 80s by Richard Stallman Goal to make a free

More information

The Unix Shell & Shell Scripts

The Unix Shell & Shell Scripts The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises

More information

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )

More information

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories Chapter Two Exploring the UNIX File System and File Security Lesson A Understanding Files and Directories 2 Objectives Discuss and explain the UNIX file system Define a UNIX file system partition Use the

More information

CS246 Spring14 Programming Paradigm Notes on Linux

CS246 Spring14 Programming Paradigm Notes on Linux 1 Unix History 1965: Researchers from Bell Labs and other organizations begin work on Multics, a state-of-the-art interactive, multi-user operating system. 1969: Bell Labs researchers, losing hope for

More information

CSCI 2132 Software Development. Lecture 4: Files and Directories

CSCI 2132 Software Development. Lecture 4: Files and Directories CSCI 2132 Software Development Lecture 4: Files and Directories Instructor: Vlado Keselj Faculty of Computer Science Dalhousie University 12-Sep-2018 (4) CSCI 2132 1 Previous Lecture Some hardware concepts

More information

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2 Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades 2017-2018 Q2 Facultat d Informàtica de Barcelona This first lab session is focused on getting experience in working

More information

Std: XI CHAPTER-3 LINUX

Std: XI CHAPTER-3 LINUX Commands: General format: Command Option Argument Command: ls - Lists the contents of a file. Option: Begins with minus sign (-) ls a Lists including the hidden files. Argument refers to the name of a

More information

Introduction to Linux

Introduction to Linux Introduction to Linux The command-line interface A command-line interface (CLI) is a type of interface, that is, a way to interact with a computer. Window systems, punched cards or a bunch of dials, buttons

More information

Appendix B WORKSHOP. SYS-ED/ Computer Education Techniques, Inc.

Appendix B WORKSHOP. SYS-ED/ Computer Education Techniques, Inc. Appendix B WORKSHOP SYS-ED/ Computer Education Techniques, Inc. 1 Introduction There are no workshops for this chapter. The instructor will provide demonstrations and examples. SYS-ED/COMPUTER EDUCATION

More information

Perl and R Scripting for Biologists

Perl and R Scripting for Biologists Perl and R Scripting for Biologists Lukas Mueller PLBR 4092 Course overview Linux basics (today) Linux advanced (Aure, next week) Why Linux? Free open source operating system based on UNIX specifications

More information

CHE3935. Lecture 1. Introduction to Linux

CHE3935. Lecture 1. Introduction to Linux CHE3935 Lecture 1 Introduction to Linux 1 Logging In PuTTY is a free telnet/ssh client that can be run without installing it within Windows. It will only give you a terminal interface, but used with a

More information

Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers

Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers Hands-on Keyboard: Cyber Experiments for Strategists and Policy Makers Review of the Linux File System and Linux Commands 1. Introduction Becoming adept at using the Linux OS requires gaining familiarity

More information

UNIX File Hierarchy: Structure and Commands

UNIX File Hierarchy: Structure and Commands UNIX File Hierarchy: Structure and Commands The UNIX operating system organizes files into a tree structure with a root named by the character /. An example of the directory tree is shown below. / bin

More information

Linux/Cygwin Practice Computer Architecture

Linux/Cygwin Practice Computer Architecture Linux/Cygwin Practice 2010 Computer Architecture Linux Login Use ssh client applications to connect (Port : 22) SSH Clients zterm ( http://www.brainz.co.kr/products/products4_2.php ) Putty ( http://kldp.net/frs/download.php/3411/hangulputty-0.58.h2.exe

More information

Using the Zoo Workstations

Using the Zoo Workstations Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions

More information

Session 1: Accessing MUGrid and Command Line Basics

Session 1: Accessing MUGrid and Command Line Basics Session 1: Accessing MUGrid and Command Line Basics Craig A. Struble, Ph.D. July 14, 2010 1 Introduction The Marquette University Grid (MUGrid) is a collection of dedicated and opportunistic resources

More information

Introduction. File System. Note. Achtung!

Introduction. File System. Note. Achtung! 3 Unix Shell 1: Introduction Lab Objective: Explore the basics of the Unix Shell. Understand how to navigate and manipulate file directories. Introduce the Vim text editor for easy writing and editing

More information

Unix Tutorial Haverford Astronomy 2014/2015

Unix Tutorial Haverford Astronomy 2014/2015 Unix Tutorial Haverford Astronomy 2014/2015 Overview of Haverford astronomy computing resources This tutorial is intended for use on computers running the Linux operating system, including those in the

More information

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi Lezione 8 Bioinformatica Mauro Ceccanti e Alberto Paoluzzi Dip. Informatica e Automazione Università Roma Tre Dip. Medicina Clinica Università La Sapienza Sommario Shell command language Introduction A

More information

Introduction to the UNIX command line

Introduction to the UNIX command line Introduction to the UNIX command line Steven Abreu Introduction to Computer Science (ICS) Tutorial Jacobs University s.abreu@jacobs-university.de September 19, 2017 Overview What is UNIX? UNIX Shell Commands

More information

Introduction to Unix - Lab Exercise 0

Introduction to Unix - Lab Exercise 0 Introduction to Unix - Lab Exercise 0 Along with this document you should also receive a printout entitled First Year Survival Guide which is a (very) basic introduction to Unix and your life in the CSE

More information

FILE MAINTENANCE COMMANDS

FILE MAINTENANCE COMMANDS Birla Institute of Technology & Science, Pilani Computer Programming (CS F111) Lab-2 ----------------------------------------------------------------------------------------------------------------------

More information

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions Welcome to getting started with Ubuntu 12.04 Server. This System Administrator Manual guide to be simple to follow, with step by step instructions with screenshots INDEX 1.Installation of Ubuntu 12.04

More information

Introduction to Linux Environment. Yun-Wen Chen

Introduction to Linux Environment. Yun-Wen Chen Introduction to Linux Environment Yun-Wen Chen 1 The Text (Command) Mode in Linux Environment 2 The Main Operating Systems We May Meet 1. Windows 2. Mac 3. Linux (Unix) 3 Windows Command Mode and DOS Type

More information

CENG393 Computer Networks Labwork 1

CENG393 Computer Networks Labwork 1 CENG393 Computer Networks Labwork 1 Linux is the common name given to a large family of operating systems. All Linux-based operating systems are essentially a large set of computer software that are bound

More information

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME Introduction to the Unix command line History Many contemporary computer operating systems, like Microsoft Windows and Mac OS X, offer primarily (but not exclusively) graphical user interfaces. The user

More information

Course 144 Supplementary Materials. UNIX Fundamentals

Course 144 Supplementary Materials. UNIX Fundamentals Course 144 Supplementary Materials UNIX Fundamentals 1 Background to UNIX Command Fundamentals This appendix provides a overview of critical commands and concepts Prerequisite knowledge attendees should

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions Lanka Education and Research Network Linux Architecture, Linux File System, Linux Basic Commands 28 th November 2016 Dilum Samarasinhe () Overview History of Linux Linux Architecture Linux File System

More information

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell Lezione 8 Bioinformatica Mauro Ceccanti e Alberto Paoluzzi Esercitazione Introduzione al linguaggio di shell Dip. Informatica e Automazione Università Roma Tre Dip. Medicina Clinica Università La Sapienza

More information

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University Introduction to Linux Woo-Yeong Jeong (wooyeong@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating system of a computer What is an

More information

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Embedded Linux Systems Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island Generic Embedded Systems Structure User Sensors ADC microcontroller

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

Introduction of Linux

Introduction of Linux Introduction of Linux 阳 oslab2018_class1@163.com 寅 oslab2018_class2@163.com PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands PART II Shell

More information

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one] Data and Computer Security (CMPD414) Lab II Topics: secure login, moving into HOME-directory, navigation on Unix, basic commands for vi, Message Digest This lab exercise is to be submitted at the end of

More information

Linux Systems Administration Getting Started with Linux

Linux Systems Administration Getting Started with Linux Linux Systems Administration Getting Started with Linux Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International

More information

Unix System Architecture, File System, and Shell Commands

Unix System Architecture, File System, and Shell Commands Unix System Architecture, File System, and Shell Commands Prof. (Dr.) K.R. Chowdhary, Director COE Email: kr.chowdhary@iitj.ac.in webpage: http://www.krchowdhary.com JIET College of Engineering August

More information

Oxford University Computing Services. Getting Started with Unix

Oxford University Computing Services. Getting Started with Unix Oxford University Computing Services Getting Started with Unix Unix c3.1/2 Typographical Conventions Listed below are the typographical conventions used in this guide. Names of keys on the keyboard are

More information

CS4350 Unix Programming. Outline

CS4350 Unix Programming. Outline Outline Unix Management Files and file systems Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission

More information

commandname flags arguments

commandname flags arguments Unix Review, additional Unix commands CS101, Mock Introduction This handout/lecture reviews some basic UNIX commands that you should know how to use. A more detailed description of this and other commands

More information

EECS2301. Lab 1 Winter 2016

EECS2301. Lab 1 Winter 2016 EECS2301 Lab 1 Winter 2016 Lab Objectives In this lab, you will be introduced to the Linux operating system. The basic commands will be presented in this lab. By the end of you alb, you will be asked to

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Mukesh Pund Principal Scientist, NISCAIR, New Delhi, India History In 1969, a team of developers developed a new operating system called Unix which was written using C Linus Torvalds,

More information

CENG 334 Computer Networks. Laboratory I Linux Tutorial

CENG 334 Computer Networks. Laboratory I Linux Tutorial CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction

More information

Commands are in black

Commands are in black Starting From the Shell Prompt (Terminal) Commands are in black / +--------+---------+-------+---------+---------+------ +------ +------ +------ +------ +------ +-- Bin boot dev etc home media sbin bin

More information

Tutorial 1: Unix Basics

Tutorial 1: Unix Basics Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the

More information

Overview of the UNIX File System

Overview of the UNIX File System Overview of the UNIX File System Navigating and Viewing Directories Adapted from Practical Unix and Programming Hunter College Copyright 2006 Stewart Weiss The UNIX file system The most distinguishing

More information

Introduction to Linux Workshop 1

Introduction to Linux Workshop 1 Introduction to Linux Workshop 1 The George Washington University SEAS Computing Facility Created by Jason Hurlburt, Hadi Mohammadi, Marco Suarez hurlburj@gwu.edu Logging In The lab computers will authenticate

More information

Using UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program

Using UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program Using UNIX. UNIX is mainly a command line interface. This means that you write the commands you want executed. In the beginning that will seem inferior to windows point-and-click, but in the long run the

More information

Getting started with Hugs on Linux

Getting started with Hugs on Linux Getting started with Hugs on Linux COM1022 Functional Programming Techniques Dr Hans Georg Schaathun University of Surrey Autumn 2009 Week 7 Dr Hans Georg Schaathun Getting started with Hugs on Linux Autumn

More information

Basic Linux Command Line Interface Guide

Basic Linux Command Line Interface Guide This basic Linux Command-Line Interface (CLI) Guide provides a general explanation of commonly used Bash shell commands for the Barracuda NG Firewall. You can access the command-line interface by connecting

More information

Unix Introduction to UNIX

Unix Introduction to UNIX Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various

More information

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: Linux Tutorial How to read the examples When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: $ application file.txt

More information

Lab Working with Linux Command Line

Lab Working with Linux Command Line Introduction In this lab, you will use the Linux command line to manage files and folders and perform some basic administrative tasks. Recommended Equipment A computer with a Linux OS, either installed

More information

Getting Started With UNIX Lab Exercises

Getting Started With UNIX Lab Exercises Getting Started With UNIX Lab Exercises This is the lab exercise handout for the Getting Started with UNIX tutorial. The exercises provide hands-on experience with the topics discussed in the tutorial.

More information

Introduction to Unix and Linux. Workshop 1: Directories and Files

Introduction to Unix and Linux. Workshop 1: Directories and Files Introduction to Unix and Linux Workshop 1: Directories and Files Genomics Core Lab TEXAS A&M UNIVERSITY CORPUS CHRISTI Anvesh Paidipala, Evan Krell, Kelly Pennoyer, Chris Bird Genomics Core Lab Informatics

More information

Getting your department account

Getting your department account 02/11/2013 11:35 AM Getting your department account The instructions are at Creating a CS account 02/11/2013 11:36 AM Getting help Vijay Adusumalli will be in the CS majors lab in the basement of the Love

More information

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80 CSE 303 Lecture 2 Introduction to bash shell read Linux Pocket Guide pp. 37-46, 58-59, 60, 65-70, 71-72, 77-80 slides created by Marty Stepp http://www.cs.washington.edu/303/ 1 Unix file system structure

More information

Essential Linux Shell Commands

Essential Linux Shell Commands Essential Linux Shell Commands Special Characters Quoting and Escaping Change Directory Show Current Directory List Directory Contents Working with Files Working with Directories Special Characters There

More information

Working with Basic Linux. Daniel Balagué

Working with Basic Linux. Daniel Balagué Working with Basic Linux Daniel Balagué How Linux Works? Everything in Linux is either a file or a process. A process is an executing program identified with a PID number. It runs in short or long duration

More information

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG *nix Crash Course Presented by: Virginia Tech Linux / Unix Users Group VTLUUG Ubuntu LiveCD No information on your hard-drive will be modified. Gives you a working Linux system without having to install

More information

Unix tutorial. Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based.

Unix tutorial. Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based. Unix tutorial Thanks to Michael Wood-Vasey (UPitt) and Beth Willman (Haverford) for providing Unix tutorials on which this is based. Terminal windows You will use terminal windows to enter and execute

More information

Overview of the UNIX File System. Navigating and Viewing Directories

Overview of the UNIX File System. Navigating and Viewing Directories Overview of the UNIX File System Navigating and Viewing Directories Copyright 2006 Stewart Weiss The UNIX file system The most distinguishing characteristic of the UNIX file system is the nature of its

More information

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal.

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

Getting started with Hugs on Linux

Getting started with Hugs on Linux Getting started with Hugs on Linux CS190 Functional Programming Techniques Dr Hans Georg Schaathun University of Surrey Autumn 2008 Week 1 Dr Hans Georg Schaathun Getting started with Hugs on Linux Autumn

More information

Introduction to Linux. Roman Cheplyaka

Introduction to Linux. Roman Cheplyaka Introduction to Linux Roman Cheplyaka Generic commands, files, directories What am I running? ngsuser@ubuntu:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu

More information

Linux Command Line Primer. By: Scott Marshall

Linux Command Line Primer. By: Scott Marshall Linux Command Line Primer By: Scott Marshall Draft: 10/21/2007 Table of Contents Topic Page(s) Preface 1 General Filesystem Background Information 2 General Filesystem Commands 2 Working with Files and

More information

INSE Lab 1 Introduction to UNIX Fall 2017

INSE Lab 1 Introduction to UNIX Fall 2017 INSE 6130 - Lab 1 Introduction to UNIX Fall 2017 Updated by: Paria Shirani Overview In this lab session, students will learn the basics of UNIX /Linux commands. They will be able to perform the basic operations:

More information

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209 CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System

More information

Lecture # 2 Introduction to UNIX (Part 2)

Lecture # 2 Introduction to UNIX (Part 2) CS390 UNIX Programming Spring 2009 Page 1 Lecture # 2 Introduction to UNIX (Part 2) UNIX is case sensitive (lowercase, lowercase, lowercase) Logging in (Terminal Method) Two basic techniques: 1. Network

More information

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

INTRODUCTION TO BIOINFORMATICS

INTRODUCTION TO BIOINFORMATICS Introducing the LINUX Operating System BecA-ILRI INTRODUCTION TO BIOINFORMATICS Mark Wamalwa BecA- ILRI Hub, Nairobi, Kenya h"p://hub.africabiosciences.org/ h"p://www.ilri.org/ m.wamalwa@cgiar.org 1 What

More information

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys Hitchhiker s Guide to VLSI Design with Cadence & Synopsys David Money Harris 17 January 2009 The VLSI design tools at Harvey Mudd College are hosted on a Linux server named chips. This document introduces

More information

A Brief Introduction to the Linux Shell for Data Science

A Brief Introduction to the Linux Shell for Data Science A Brief Introduction to the Linux Shell for Data Science Aris Anagnostopoulos 1 Introduction Here we will see a brief introduction of the Linux command line or shell as it is called. Linux is a Unix-like

More information

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview

More information

1 Installation (briefly)

1 Installation (briefly) Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB

More information

Unix Handouts. Shantanu N Kulkarni

Unix Handouts. Shantanu N Kulkarni Unix Handouts Shantanu N Kulkarni Abstract These handouts are meant to be used as a study aid during my class. They are neither complete nor sincerely accurate. The idea is that the participants should

More information

Getting Started with UNIX

Getting Started with UNIX Getting Started with UNIX What is UNIX? Boston University Information Services & Technology Course Number: 4000 Course Instructor: Kenny Burns Operating System Interface between a user and the computer

More information

Week 2. Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands

Week 2. Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands Week 2 Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands mkdir, cd, cls, del, copy, attrib, date, path, type, format, exit. Basic commands in LINUX - cat, ls, pwd,,

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Prof. Jin-Soo Kim( jinsookim@skku.edu) TA - Dong-Yun Lee (dylee@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating

More information

Basic Linux Command Line Interface Guide

Basic Linux Command Line Interface Guide This basic Linux Command-Line Interface (CLI) Guide provides a general explanation of commonly used Bash shell commands for the Barracuda NG Firewall. You can access the command-line interface by connecting

More information

Week 2 Lecture 3. Unix

Week 2 Lecture 3. Unix Lecture 3 Unix Terminal and Shell 2 Terminal Prompt Command Argument Result 3 Shell Intro A system program that allows a user to execute: shell functions (e.g., ls -la) other programs (e.g., eclipse) shell

More information

Unix Workshop Aug 2014

Unix Workshop Aug 2014 Unix Workshop 2014 5 Aug 2014 What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters Unix Around You You re probably familiar with these: Linux Solaris

More information

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.)

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) 1 Introduction 1 CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) This laboratory is intended to give you some brief experience using the editing/compiling/file

More information

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes * Commands preceded with "$" imply that you should execute the command as a general user not as root. * Commands preceded with

More information

Command Line Interface The basics

Command Line Interface The basics Command Line Interface The basics Marco Berghoff, SCC, KIT Steinbuch Centre for Computing (SCC) Funding: www.bwhpc-c5.de Motivation In the Beginning was the Command Line by Neal Stephenson In contrast

More information