Using UNIX. In this section we find out how to start and stop using a UNIX system and how to use some of its many commands.

Size: px
Start display at page:

Download "Using UNIX. In this section we find out how to start and stop using a UNIX system and how to use some of its many commands."

Transcription

1 Using UNIX 1 Introduction An operating system is the way in which a computer interprets a set of instructions, processes them, connects with various bits of hardware and creates coherent output that a user can understand. For this reason it is also often referred to as a platform since it provides a transparent low-level base upon which everything else sits. A user does not often communicate directly with an operating system. Instead, this is done through a series of applications which have been written in a programming language and compiled to run on that operating system. Such applications allow the link to the operating system and the running of the computer to be as simple as clicking on a button, for example. UNIX is one of these operating systems (and one of the oldest!). Other operating systems that you will have heard of include DOS (which stands for Disk Operating System), Windows 95 and NT (older Microsoft Windows used to run on top of DOS), OS/2 (IBM s UNIX-like operating system) and Linux (a free distribution of UNIX designed to run on PC s). Unlike Windows 95 and it s newer variants, UNIX predominantly relies on command line instructions rather than using the mouse on a windows front end to control applications. UNIX is used in many settings. In fact the internet is designed around the UNIX operating system. Apart from use in academia, UNIX is used extensively in the computer software industry and most large companies have UNIX servers to connect to the internet. 2 Web resources There s tonnes of UNIX help pages on the web. The guide here is very simple and only touches on the basic commands and the simple ways in which you can use them. For more information search for UNIX help on the web or look at 3 Getting started In this section we find out how to start and stop using a UNIX system and how to use some of its many commands. 3.1 Logging onto the system The maths department has several UNIX machines called: elios (the departmental server), selene and augeas (the main applied maths number-crunchers ), and others. The PC on your desk will be running the Windows NT operating system. In order to use UNIX, you need to connect to one of the department s UNIX machines over the network (using a piece of Windows software called PCNFS Pro). This is done by logging on. 1

2 Figure 1: The layout of the network in the department From your PC, click on one of the X icons (a blue coloured X with the machine name below it not to be confused with the blue X icon that is used for MS Excel). For example, there should be an elios X-icon on your desktop. You will be prompted for a login name (also known as a username or account name) and a password. You must always keep your password to yourself to avoid other people from using your account. You can only log onto a UNIX machine for which you have been given an account. You will have accounts on elios, selene and augeas. If you have typed in you account name and your password correctly you will be presented with a window called an xterm. If you get the message login incorrect you have typed in your username or your password incorrectly and should try again. If this still doesn t work see Richard Lewis. 3.2 The % prompt In order for you to issue command in UNIX, you require a prompt. On elios this will look like elios:marp% (marp will be replaced by your own username) and this will be followed with a blinking cursor. We shall abbreviate this to % in what follows to indicate that we are working from a UNIX prompt. If you haven t got a % prompt, you cannot issue any commands. 2

3 3.3 Changing your password When you first go into a new account you will want to change your password to something which you will remember and something that is secure! This is done by typing the UNIX command % passwd (don t type the % here, just the letters passwd.) You will be asked to type in a new password twice to confirm. You must choose a password which has between 6 and 8 characters. You must also choose a password which is not too obvious! It should include at least one letter and at least one number. It is also good practice to include capital letters and non-alphanumeric characters. If you forget your password, go see Richard Lewis (Room 2.14), who will give you a new one. 3.4 Special login files When you log onto a UNIX machines, the system reads in information about your individual set up (default printers, editors etc) from special login files. They are given the name.login and.cshrc. Files that start with a. (a dot) are called dot files or hidden files. You may want to add or amend these two files to tailor and fine tune your set up to your individual needs, but this is not necessary. Technical note: The.login file is read once when you log in, whilst the.cshrc is read whenever you start a new shell. 3.5 Logging out When you have finished your UNIX session, you must log out. To do this type % logout or % exit 4 Basic UNIX commands The basic form of any Unix command is: command name options argument(s) To understand the command syntax apply the following simple rules: 1. Any options or arguments enclosed in [] square brackets are optional. 2. Anything not enclosed in [] square brackets must be entered. 3

4 3. Boldface words are considered to be literals and must be typed exactly as they appear. This usually applies to the command name and command options. 4. Arguments shown in italics must be replaced by whatever it is that they represent. This is usually the name of a file or directory. 5. Ellipses... mean that the previous argument can be repeated any number of times. These are useful when trying to interpret man pages for the various commands - see section Listing files The basic command to list files in your current directory is % ls The ls command comes with many options (or flags). The most useful and commonly used variant of the ls command is % ls -l A typical output from this command is something like: -rwxr-xr-x 1 marp applied Sep 22 15:02 a.out lrwxrwxrwx 1 marp applied 8 Sep 22 12:44 source ->../source -rw-r--r-- 1 marp applied 765 Sep 22 15:22 unix.aux -rw-r--r-- 1 marp applied 6228 Sep 22 15:22 unix.dvi -rw-r--r-- 1 marp applied 2090 Sep 22 15:22 unix.log -rw-r--r-- 1 marp applied 4558 Sep 22 15:22 unix.tex drwxr-sr-x 2 marp applied 1024 Sep 22 15:45 webstuff This has given us a host of information about the various files that are present in the current directory. The first column displays the file permissions (see 3.2 below). The third and fourth columns tell you who owns the files (in this case, it s the user marp in the group applied). The fifth column gives the size of the files in bytes. Thus, the file a.out is 13,425 bytes or 13.4K (Kilobytes). After that is the datestamp which tells you the date and time the file was altered, or when it was created. Other useful options to be used with the ls command are % ls -a also lists dot or hidden files % ls -al as ls -l, but also includes hidden files % ls -lrt as ls -l, but organises the files in the reverse of the order in which they were created (i.e. with the newest files at the bottom.) % ls -lr lists files in the current directory and all files in the directory tree below your current directory If there are too many files to fit on your screen such that the output scrolls past, you can 4

5 add the characters more to the ls command, viz: % ls -l more and this allows your to scroll through the file listing line-by-line (by pressing <Enter>) or page-by-page (by pressing <Space>). Technical note: The character is known as the UNIX pipe, and is used in conjunction with other UNIX commands. The command % ls -l more pipes the output from ls into the more command. 4.2 File permissions In the example above ls -l gave the output -rwxr-xr-x 1 marp applied Sep 22 15:02 a.out lrwxrwxrwx 1 marp applied 8 Sep 22 12:44 source ->../source -rw-r--r-- 1 marp applied 765 Sep 22 15:22 unix.aux -rw-r--r-- 1 marp applied 6228 Sep 22 15:22 unix.dvi -rw-r--r-- 1 marp applied 2090 Sep 22 15:22 unix.log -rw-r--r-- 1 marp applied 4558 Sep 22 15:22 unix.tex drwxr-sr-x 2 marp applied 1024 Sep 22 15:45 webstuff The first column gives information about the type of file, whether it can be read, written to or executed and by who. Each string consists of 10 characters and is grouped into 4 substrings: (1) }{{}}{{}}{{} user group other The first character denotes the file type. A dash (-) signifies that it is a regular file. If it is occupied by a d, it signifies that it is a directory. An l signifies that it is a symbolic link (you probably won t need to know about this - it is a file which really isn t a file, but points to a file somewhere else on the system). In each of the three substrings, the three dashes may be replaced with r, w and x (or sometimes s or t) respectively. These mean that the file is readable, writable and executable respectively. The purpose of having three sets of these for the user, the group and others as illustrated in (1) is as follows. You will usually want a file in your filespace to be readable and writable by yourself. You may also want other people in your group (applied in this case) to be able to read your files, and you may want the whole world to be able to read your files. However you will not, in general, want to give permission for anybody else to overwrite your files, which is why the w is missing from the group and other files in the regular files in the example output above. The x signifies that the file is executable and in the example output above, the file a.out is thus executable for users, group and others (this is the default). By default, files created in by yourself in your filespace will not have write permission for group and users. 4.3 Changing file permissions Should you wish to change the permissions, you use the chmod command. For example, 5

6 % chmod ugo+rwx a.out creates (r)ead, (w)rite and e(x)ecutable permissions to (u)sers, (g)roup and (o)thers for the file a.out, whilst % chmod go-r unix.tex removes (r)ead permission for (g)roup and (o)thers from the file unix.tex 4.4 File ownership The file listing -rw-r--r-- 1 maiw stats 4558 Sep 22 15:22 unix.tex produced by the command % ls -l a.out is currently owned by the user maiw who is in the group stats. If this file were to find its way into your filesystem, you would still not be able to work with it, since the file is not owned by you. Use the command: % chown marp.applied unix.tex to give -rw-r--r-- 1 marp applied 4558 Sep 22 15:22 unix.tex and hence give you access to the file. 4.5 Wildcards In UNIX certain characters are reserved for special use. Two of these are * and?. These are known as wildcards. The asterisk may be used in place of a string of characters when defining a filename. For example, % ls -l unix.* list all the files which begin with unix., whatever their ending: -rw-r--r-- 1 marp applied 765 Sep 22 15:22 unix.aux -rw-r--r-- 1 marp applied 6228 Sep 22 15:22 unix.dvi -rw-r--r-- 1 marp applied 2090 Sep 22 15:22 unix.log -rw-r--r-- 1 marp applied 4558 Sep 22 15:22 unix.tex whereas % ls -l *.tex lists only those files ending with.tex. The command % ls -l *.* lists all files (including hidden files) and is equivalent to ls -la. The wildcard? can be used as a substitution for a single character. E.g. % ls -l?.* 6

7 lists all files that have only one character before the.. In our example, the only output from this command is -rwxr-xr-x 1 marp applied Sep 22 15:02 a.out 5 The filesystem and moving around the filespace 5.1 Your home directory Whenever you log into a UNIX machine, you are placed in your home directory. This is your own home space on the system where you can create, manipulate and remove files. In fact your home space is a directory itself having the same name as your username. It is best to think of a directory as a folder. 5.2 Finding out where you are on your filesystem If you are ever lost and want to find your current location within a filesystem, you use the important command % pwd (it stands for present working directory ). command pwd gives For example, after logging in, issuing the /home/marp which tells you that you are in the marp directory of the home directory, where all other users directories also reside. /home/{username} is called your home directory. A useful abbreviation of your home directory is ~ (that s a squiggle). 5.3 The path You don t need to be in a particular directory to access on files and directories in that directory. As long as you specify the path to the file(s) or directories from one of a set of locations on the filesystem, you can access the files. There are three reference positions that you can use to specify a path; your current position in the filesystem (also known as. ; your home directory (also known as ~ ) and the root directory (or / ). We will come across various examples of these in the next few sections. 5.4 Creating new directories It is very important that you organise your filesystem in a clear and organised manner, by creating directories associated with different tasks. For example, if you are going to write some FORTRAN code, you will want to store all that work in a separate folder, or directory. To create a new directory called FORTRAN, type % mkdir FORTRAN You can check that it has been created by typing ls. It is useful, but not necessary, to 7

8 use upper case characters for directory names and lower case characters for all other files. As in everything in UNIX, case is important. 5.5 Changing directories To move up into the FORTRAN directory, type % cd FORTRAN You can now check where you are on your system by typing % pwd which will return /home/marp/fortran. To move back down into your home directory, type % cd.. If you had made another sub-directory in your FORTRAN directory called SCATTERING, then from your home directory you could either type % cd FORTRAN followed by % cd SCATTERING (and issuing % pwd would then return /home/marp/fortran/scattering) or you could do the change of directory in one go by typing % cd FORTRAN/SCATTERING There are then a number options to return to your home directory from the sub-directory /home/marp/fortran/scattering. You can do it in two stages by typing % cd.. followed by % cd.. or in one go by typing % cd../.. or you can use the ~ abbreviation for your home directory and type % cd ~ which can be abbreviated further by omitting the ~ to just % cd Finally, you can get back to your home directory by referring to it s position in relation to the root directory (/). So you would type % cd /home/marp 8

9 5.6 Removing directories You may want to remove a directory (normally in the process of clearing out some junk). A directory must be empty before it can be removed. If you try to remove a directory which contains files, you will get an error message (there is a way to do it, but it is very dangerous!). The command to remove a directory is % rmdir For example, if you wanted to remove the sub-directory SCATTERING in the above example, make sure you are in the FORTRAN directory. (do an ls to make sure you have the directory SCATTERING present). Then type % rmdir SCATTERING Do another ls command, and you will see that SCATTERING is no longer present. 5.7 Moving directories Occasionally, you will also want to move a directory to another place on the file system. You use the command mv. This is the same command and follows the same rules that you would use for moving a regular file around the filesystem (see the mv command later). 5.8 Copying directories Copying directories and their contents is another command which can be useful (especially for making back-ups). This uses the same command as for copying regular files, cp (see later), but also requires the use of a flag to make sure all the contents and subdirectories are copied correctly. For example, if you want to make a back-up copy of your FORTRAN directory, from your home directory you would type something like: % cp -R FORTRAN FORTRAN.OLD Issuing an ls command would now list both directories FORTRAN and FORTRAN.OLD and any files or subdirectories in FORTRAN will now be present in FORTRAN.OLD. 6 Creating and manipulating files Directories provide folders for containing and organising regular files which are the things you really want to work with. So how do we create a file, delete, copy or move a file? Files can be created either by copying an existing file to a new location or filename or by using a text editor to create a file for you. 6.1 UNIX editors The editors available on the UNIX machines in the maths department are pico, vi (plus it s variants vim and gvim) and emacs and xemacs. Perhaps the easiest editor to use is pico, but has the least amount of functionality which can make it difficult to do fancy things. 9

10 Many people use the xemacs editor as it is more like how you would expect a windows application to look, and it comes with many features that allow you to do very fancy editing tricks. vi is the standard UNIX editor. A much more user-friendly and improved version of vi is vim and even better gvim, though these are not always standard packages on UNIX systems. It s up to you which one you choose and how ambitious you are feeling. Various web-based resources can be found on each of these editors that you should check out. pico Web resources: tutor/pico intro.html Also see the separate sheet on the basic commands. vi,vim,gvim Web resources: tutorials.html reference.html Also see the separate sheet on the basic commands. emacs and xemacs Web resources: amongst many others Suffixes (dots) on filenames As you will find out, certain file types end in certain ways. For example, a FORTRAN 77 file has to end in.f, a C file in.c and web files in.html. It is best to stick to this convention wherever possible, and this includes ordinary text files which it is usual to end each filename with.txt. 6.3 Viewing the contents of files Sometimes you will not want to edit a file, but just want to view the contents of a file. This is done easily by typing % more filename 10

11 Provided that it is a text file, it will scroll the contents of the file through the screen (xterm). Pressing <Enter> will scroll line-by-line and <Space> will scroll page-by-page. 6.4 Deleting files To delete a file, use the command % rm filename By default, the command rm has been aliased to rm -i so that the computer will ask you if you really want to delete the file. This is for a good reason: once a file has been deleted, there is no way to get it back. Remember, you can use wildcards (*,?) if you want to delete files having a certain pattern. For example, rm *.tex would delete all files with the suffix tex. You can also delete files in different directories by specifying the correct path. 6.5 Moving files To rename a filename from one name to another use the command % mv filename new filename If you want to move the file into a different directory, you don t need to specify the new filename. For example, % mv FORTRAN.OLD/a.out FORTRAN/SCATTERING/ when issued from a directory containing directories FORTRAN and FORTRAN.OLD would move the file a.out from the directory FORTRAN.OLD and place it in FORTRAN/SCATTERING. 6.6 Copying files This is very similar to moving files, only the UNIX command for copying is cp. E.g. % cp filename new filename Note that you cannot copy or move files into an area of the filesystem not owned by you, and you cannot delete files from areas outside your own filespace. For obvious reasons. 7 Printing From the UNIX machines, you can send print jobs to the printer using the lp command or the mp command. There are a number of printers in the department, and so you need to specify which one you wish to send it to. There is also a special language that files must be in before they can be sent to the print it s called postscript. If a file ends in.ps then you can use the command % lp -dprinter name filename.ps 11

12 where the printer names are maps1 (1st floor), maps2 (2nd floor, double-sided), maps3, maps4 (3rd and 4th floors) and macol (the color printer in 2.11). For example, % lp -dmaps2 picture.ps prints the file picture.ps to the 2nd floor printer. As it happens, the 2nd floor printer is the default printer and omitting the -dmaps2 option will send it there. NOTE: If your file is not postscript, it will waste a lot of paper and upset our lovely systems administrator. Instead, use the command mp in the following way: % mp filename lp -dprinter name For example % mp poo.txt lp -dmaps1 will print the text file poo.txt to the 1st floor printer. Technically we say that the output from applying the command mp to a text file is postscript and that is piped (using the UNIX pipe command) into the printing command lp. 8 Finding out more about a command. If you have a command such as ls and want to find out more about what it can do, you use the man command. For example, % man ls will provide all the information about the command ls. 9 Managing your processes. 9.1 Background jobs. Sometimes you will want to start and application but still regain the command line prompt. For example, you may want to have two sessions going at the same time. You could log in twice, but far simpler is to bring up another xterm. If you just typed % xterm you would get another xterm, but would lose the command prompt on the first xterm. What you do in practice is type % xterm & The & place at the end of a command puts it into the background and gives you back your command prompt. 9.2 Interrupting jobs. Let s say that you had typed 12

13 % xterm and not run it in the background, you can kill it off and return to a command-line prompt buy typing CTRL-C (abbreviated to ^C. This is known as the interrupt signal in UNIX. 9.3 Suspending and restarting jobs. If you have run a job, don t want to kill it, but would like to get back your command prompt for a while, you can issue a suspend signal by typing CTRL-Z (or ^Z). This will completely suspend all the functionality of the command you first issued. To get it back again, from your command prompt you type % fg 9.4 Killing jobs. When you have set jobs running in the background, it is possible to close them down from the command line using the command kill. First you need to identity the job to kill and this is achieved by typing jobs If the computer tells you there are no jobs running then obviously you can t kill any off. Otherwise there will be a list of jobs which will all be associated with a number. For example you could have an output like this: [1] + Running xdvi -bg lightyellow -s 9 -expert -install and to kill off this process you need to type % kill %1 If the jobs had been numbered [2], then you would replace 1 by 2 in the above command. 9.5 Listing your/other processes. When you are running programs on UNIX, you may be taking up a huge chunk of CPU time and a huge chunk of memory. This may not please other users on the system, and it certainly won t please a system administrator. To check out the current use of resources on a system, you type % top The list that you get will be very confusing with many incoherent columns of numbers and codes. If your username is near the top, you are one of the people that is hogging the system and you should be able to work out how much of the CPU and memory you are using. This may not be a bad thing, but be aware of other people using the system and how much it is being used. To exit the program top, type q. 13

14 10 Telneting and FTP ing If you are on one machine and you want to get onto another machine you can either start a new X session from your PC or telnet from your current login session to a new machine. For example, if you have logged into elios and want to run a program on selene, you can type % telnet selene This will prompt you for a login and a password in the normal way. If you want to telnet a different machine, then replace selene by the machine name (or the appropriate IP address). To log out of a telnet session, use the command logout or exit and you will return to the machine from which you telnetted. FTP ing is similar. FTP (which stands for file transfer protocol) allows you to transfer files from one computer to another. Note that the filespace on elios, selene and augeas all share the same filespace and so you will not need to FTP between these machines. To FTP files from machinea to machineb first log into machinea and then type % ftp machineb You will be asked for your login name and password for machineb. After correctly entering these, you will be given an ftp> prompt. To move a file from your native machinea to machineb type ftp> put filename Conversely, to move a file from the remote machineb to machinea type ftp> get filename You can use the commands cd and ls on the ftp> prompt and these will correspond to the filesystem on the remote machineb Note that you cannot use wildcard characters with the put and get commands. Instead, use mput and mget. 11 Moving files between UNIX machines and your PC 11.1 FTP ing On your PC, part of thre PCNFS Pro applications is an FTP tool (there should be a small FTP icon on your button bar). Using this will allow you to move files from your PC to elios (say) and vice versa. Clicking on the FTP icon will bring up a window in which you will need to fill in some details about which UNIX machine you wish to connect to and your username and password on that machine. You then press the connect button and, provided you have entered all the correct details, you will be given a list of files and 14

15 directories in your home directory on your UNIX machine in the right hand window and your PC filespace in the left hand window. It is then a matter of highlighting files you want copying and the copying using the arrows in the center of the display. Always remember to disconnect (press on the disconnect button) after you have finished FTP ing files across Shared drives All the PC s in the department can see and manipulate files in a filesystem which the UNIX machines, such as elios can also see. On elios it is called the pcnfs drive, and everybody with an account on elios also has their own filespace on the pcnfs drive. It is found on the elios filespace in /pcnfs/username Files can be copied, created, moved into this directory etc etc... The advantage with files in this directory is that they can also be accessed on Windows NT by looking in your H: drive in Windows Explorer. 12 Searching for files and text in files 12.1 The find tool A useful tool for finding where a particular file is in your filesystem is the command find. The syntax can be very complicated, so we will only consider the one particular use of the command. If you are looking for a file which contains the substring pattern in its name, position yourself in a position on the filesystem below which you suspect the file you are looking for to be and type % find. -name \*pattern\* For example, you may want to locate the positions of all files in your homespace which have the word poo in them (e.g. poo.txt, spool.f, poo2.tex). In this case you would type cd to get you into your home directory and then type % find. -name \*poo\* 12.2 The grep tool If you want to find all the occurrences of a particular string of characters in a file, or a set of files you can use grep. So for example, if you wanted to find if the word poo had been typed in a set of FORTRAN files (.f files) in a particular directory, move into that directory and type % grep poo *.f The * is just acting as a wildcard character here. 15

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

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

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

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

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

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

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

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 File System and Basic Commands

Linux File System and Basic Commands Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS

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

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

AN INTRODUCTION TO UNIX

AN INTRODUCTION TO UNIX AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 18, 2011 OUTLINE 1 INTRODUTION Unix Common Tasks 2 THE UNIX FILESYSTEM Moving around Copying, deleting File Permissions 3 SUMMARY OUTLINE

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

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

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

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 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

Part I. Introduction to Linux

Part I. Introduction to Linux Part I Introduction to Linux 7 Chapter 1 Linux operating system Goal-of-the-Day Familiarisation with basic Linux commands and creation of data plots. 1.1 What is Linux? All astronomical data processing

More information

UNIX Quick Reference

UNIX Quick Reference UNIX Quick Reference Charles Duan FAS Computer Services August 26, 2002 1 Command Reference Many of these commands have many more options than the ones displayed here. Most also take the option h or help,

More information

Basic Survival UNIX.

Basic Survival UNIX. Basic Survival UNIX Many Unix based operating systems make available a Graphical User Interface for the sake of providing an easy way for less experienced users to work with the system. Some examples are

More information

Practical Session 0 Introduction to Linux

Practical Session 0 Introduction to Linux School of Computer Science and Software Engineering Clayton Campus, Monash University CSE2303 and CSE2304 Semester I, 2001 Practical Session 0 Introduction to Linux Novell accounts. Every Monash student

More information

Unix/Linux Primer. Taras V. Pogorelov and Mike Hallock School of Chemical Sciences, University of Illinois

Unix/Linux Primer. Taras V. Pogorelov and Mike Hallock School of Chemical Sciences, University of Illinois Unix/Linux Primer Taras V. Pogorelov and Mike Hallock School of Chemical Sciences, University of Illinois August 25, 2017 This primer is designed to introduce basic UNIX/Linux concepts and commands. No

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

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

1 Getting Started with Linux.

1 Getting Started with Linux. PHYS-4007/5007: omputational Physics Tutorial #1 Using Linux for the First Time 1 Getting Started with Linux. The information of logging in on the Linux side of the computers in Brown Hall 264 can be found

More information

CISC 220 fall 2011, set 1: Linux basics

CISC 220 fall 2011, set 1: Linux basics CISC 220: System-Level Programming instructor: Margaret Lamb e-mail: malamb@cs.queensu.ca office: Goodwin 554 office phone: 533-6059 (internal extension 36059) office hours: Tues/Wed/Thurs 2-3 (this week

More information

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Introduction to remote command line Linux. Research Computing Team University of Birmingham Introduction to remote command line Linux Research Computing Team University of Birmingham Linux/UNIX/BSD/OSX/what? v All different v UNIX is the oldest, mostly now commercial only in large environments

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

BE CAREFUL! The Summer Research Student s Guide to UNIX

BE CAREFUL! The Summer Research Student s Guide to UNIX BE CAREFUL! The Summer Research Student s Guide to UNIX Luke Leisman adapted from Andrew Butler June 2011 This is a guide designed to help summer researchers navigate the complexities of using a unix/linux

More information

Introduction to Linux for BlueBEAR. January

Introduction to Linux for BlueBEAR. January Introduction to Linux for BlueBEAR January 2019 http://intranet.birmingham.ac.uk/bear Overview Understanding of the BlueBEAR workflow Logging in to BlueBEAR Introduction to basic Linux commands Basic file

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

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

Introduction to the Linux Command Line

Introduction to the Linux Command Line Introduction to the Linux Command Line May, 2015 How to Connect (securely) ssh sftp scp Basic Unix or Linux Commands Files & directories Environment variables Not necessarily in this order.? Getting Connected

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

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

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

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

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory 1 Logging In When you sit down at a terminal and jiggle the mouse to turn off the screen saver, you will be confronted with a window

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

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

Introduction. SSH Secure Shell Client 1

Introduction. SSH Secure Shell Client 1 SSH Secure Shell Client 1 Introduction An SSH Secure Shell Client is a piece of software that allows a user to do a number of functions. Some of these functions are: file transferring, setting permissions,

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

acmteam/unix.pdf How to manage your account (user ID, password, shell); How to compile C, C++, and Java programs;

acmteam/unix.pdf How to manage your account (user ID, password, shell); How to compile C, C++, and Java programs; Note: you can find this file under: http://www.cs.queensu.ca/ acmteam/unix.pdf Introduction to Unix Tutorial In this tutorial, you will learn: How to manage your account (user ID, password, shell); Navigating

More information

Due: February 26, 2014, 7.30 PM

Due: February 26, 2014, 7.30 PM Jackson State University Department of Computer Science CSC 438-01/539-01 Systems and Software Security, Spring 2014 Instructor: Dr. Natarajan Meghanathan Project 1: Exploring UNIX Access Control in a

More information

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C Welcome! Welcome to your CpSc 111 lab! For each lab this semester, you will be provided a document like this to guide you. This material, as

More information

UTA Tech Orientation Spring 2019

UTA Tech Orientation Spring 2019 UTA Tech Orientation Spring 2019 Overview Why is Tech Stuff Important? The Filesystem Shell Commands File Permissions Miscellaneous Why is Tech Stuff Important? Why is TA Tech Stuff Important? Different

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

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

Unix basics exercise MBV-INFX410

Unix basics exercise MBV-INFX410 Unix basics exercise MBV-INFX410 In order to start this exercise, you need to be logged in on a UNIX computer with a terminal window open on your computer. It is best if you are logged in on freebee.abel.uio.no.

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

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

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

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands 1 What is an Operating System? A computer program that: Controls how the CPU, memory

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 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

An Introductory Tutorial on UNIX

An Introductory Tutorial on UNIX An Introductory Tutorial on UNIX Kevin Keay February 6 2009 Introduction The purpose of this document is to guide you through the sequence of: 1. Describing a quick method of connecting to a remote UNIX

More information

CSC111 Computer Science II

CSC111 Computer Science II CSC111 Computer Science II Lab 1 Getting to know Linux Introduction The purpose of this lab is to introduce you to the command line interface in Linux. Getting started In our labs If you are in one of

More information

Table Of Contents. 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands

Table Of Contents. 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands Table Of Contents 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands Getting onto the Zoo Type ssh @node.zoo.cs.yale.edu, and enter your netid pass when prompted.

More information

Linux Tutorial #6. -rw-r csce_user csce_user 20 Jan 4 09:15 list1.txt -rw-r csce_user csce_user 26 Jan 4 09:16 list2.

Linux Tutorial #6. -rw-r csce_user csce_user 20 Jan 4 09:15 list1.txt -rw-r csce_user csce_user 26 Jan 4 09:16 list2. File system access rights Linux Tutorial #6 Linux provides file system security using a three- level system of access rights. These special codes control who can read/write/execute every file and directory

More information

Traditional Access Permissions

Traditional Access Permissions Traditional Access Permissions There are three types of users: - owner - group - other (aka world) A user may attempt to access an ordinary file in three ways: - read from - write to - execute Use ls l

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

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

IMPORTANT: Logging Off LOGGING IN

IMPORTANT: Logging Off LOGGING IN These are a few basic Unix commands compiled from Unix web sites, and printed materials. The main purpose is to help a beginner to go around with fewer difficulties. Therefore, I will be adding to this

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

Scripting Languages Course 1. Diana Trandabăț

Scripting Languages Course 1. Diana Trandabăț Scripting Languages Course 1 Diana Trandabăț Master in Computational Linguistics - 1 st year 2017-2018 Today s lecture Introduction to scripting languages What is a script? What is a scripting language

More information

Lab Assignment #1. University of Pittsburgh Department of Electrical and Computer Engineering

Lab Assignment #1. University of Pittsburgh Department of Electrical and Computer Engineering Fall 2017 ECE1192/2192 Lab Assignment #1 University of Pittsburgh Department of Electrical and Computer Engineering 1 Objective The objective of this handout is to help you get familiar with the UNIX/Linux

More information

Operating Systems, Unix Files and Commands SEEM

Operating Systems, Unix Files and Commands SEEM Operating Systems, Unix Files and Commands SEEM 3460 1 Major Components of Operating Systems (OS) Process management Resource management CPU Memory Device File system Bootstrapping SEEM 3460 2 Programs

More information

Unix and C Program Development SEEM

Unix and C Program Development SEEM Unix and C Program Development SEEM 3460 1 Operating Systems A computer system cannot function without an operating system (OS). There are many different operating systems available for PCs, minicomputers,

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 Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen

Introduction to Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen Introduction to Unix The Windows User perspective Wes Frisby Kyle Horne Todd Johansen What is Unix? Portable, multi-tasking, and multi-user operating system Software development environment Hardware independent

More information

CST8207: GNU/Linux Operating Systems I Lab Six Linux File System Permissions. Linux File System Permissions (modes) - Part 1

CST8207: GNU/Linux Operating Systems I Lab Six Linux File System Permissions. Linux File System Permissions (modes) - Part 1 Student Name: Lab Section: Linux File System Permissions (modes) - Part 1 Due Date - Upload to Blackboard by 8:30am Monday March 12, 2012 Submit the completed lab to Blackboard following the Rules for

More information

genome[phd14]:/home/people/phd14/alignment >

genome[phd14]:/home/people/phd14/alignment > Unix Introduction to Unix Shell There is a special type of window called shell or terminalwindow. Terminal windows are the principal vehicle of interaction with a UNIX machine. Their function is to perform

More information

Using WestGrid from the desktop Oct on Access Grid

Using WestGrid from the desktop Oct on Access Grid Using WestGrid from the desktop Oct 11 2007 on Access Grid Introduction Simon Sharpe, UCIT Client Services The best way to contact WestGrid support is to email support@westgrid.ca This seminar gives you

More information

This section reviews UNIX file, directory, and system commands, and is organized as follows:

This section reviews UNIX file, directory, and system commands, and is organized as follows: Basic UNIX Commands Created by : M.S. Schmalz (Thank you Mark!) This section reviews UNIX file, directory, and system commands, and is organized as follows: 3.1. The UNIX Command Line Interface 3.2. Overview

More information

12/7/10 ATSC 212 UNIX ATSC 212 ATSC 212 UNIX

12/7/10 ATSC 212 UNIX ATSC 212 ATSC 212 UNIX ATSC 212 1 An operating system (OS) is a resource manager. It's task is to schedule resources and make available resources to system processes or programs. There have been hundreds of operating systems

More information

Linux Command Line Interface. December 27, 2017

Linux Command Line Interface. December 27, 2017 Linux Command Line Interface December 27, 2017 Foreword It is supposed to be a refresher (?!) If you are familiar with UNIX/Linux/MacOS X CLI, this is going to be boring... I will not talk about editors

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

Parts of this tutorial has been adapted from M. Stonebank s UNIX Tutorial for Beginners (http://www.ee.surrey.ac.uk/teaching/unix/).

Parts of this tutorial has been adapted from M. Stonebank s UNIX Tutorial for Beginners (http://www.ee.surrey.ac.uk/teaching/unix/). Ubuntu tutorial Parts of this tutorial has been adapted from M. Stonebank s UNIX Tutorial for Beginners (http://www.ee.surrey.ac.uk/teaching/unix/). 1 Installing Ubuntu About Ubuntu For our lab sessions

More information

Files

Files http://www.cs.fsu.edu/~langley/cop3353-2013-1/reveal.js-2013-02-11/02.html?print-pdf 02/11/2013 10:55 AM Files A normal "flat" file is a collection of information. It's usually stored somewhere reasonably

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

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

Find out where you currently are in the path Change directories to be at the root of your home directory (/home/username) cd ~

Find out where you currently are in the path Change directories to be at the root of your home directory (/home/username) cd ~ CIS 105 Working with directories You have using directories in a Windows environment extensively. Often in Windows we are calling them folders. They are important in order to organize our files. It is

More information

Exploring UNIX: Session 3

Exploring UNIX: Session 3 Exploring UNIX: Session 3 UNIX file system permissions UNIX is a multi user operating system. This means several users can be logged in simultaneously. For obvious reasons UNIX makes sure users cannot

More information

A Brief Introduction to Unix

A Brief Introduction to Unix A Brief Introduction to Unix Sean Barag Drexel University March 30, 2011 Sean Barag (Drexel University) CS 265 - A Brief Introduction to Unix March 30, 2011 1 / 17 Outline 1 Directories

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

Linux Training. for New Users of Cluster. Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala

Linux Training. for New Users of Cluster. Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala Linux Training for New Users of Cluster Georgia Advanced Computing Resource Center University of Georgia Suchitra Pakala pakala@uga.edu 1 Overview GACRC Linux Operating System Shell, Filesystem, and Common

More information

SECTION -C. Getting Started with UNIX

SECTION -C. Getting Started with UNIX Lecture 15 SECTION -C Getting Started with UNIX Introduction Changing permission modes Absolute & Relative Permissions Changing file permissions : chmod A file or directory is created with a default set

More information

Introduction to Unix CHAPTER 6. File Systems. Permissions

Introduction to Unix CHAPTER 6. File Systems. Permissions CHAPTER 6 Introduction to Unix The Unix operating system is an incredibly powerful and complex system that is ideal for running a distributed system such as ours, particularly since we use computers primarily

More information

Using Etps on Andrew. 1 Accessing Etps

Using Etps on Andrew. 1 Accessing Etps Using Etps on Andrew Copyright c Carnegie Mellon University 2005. This material is based upon work supported by NSF grants MCS81-02870, DCR-8402532, CCR-8702699, CCR-9002546, CCR-9201893, CCR-9502878,

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

Linux Survival Guide

Linux Survival Guide Linux Survival Guide Introduction: This guide is intended for use with classes at DACC that use a Linux operating system as the platform for students. It provides a quick summary and examples of how to

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

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

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems. Copyleft 2005, Binnur Kurt 3 Operating Systems Copyleft 2005, Binnur Kurt Content The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail.

More information

Shell Programming Overview

Shell Programming Overview Overview Shell programming is a way of taking several command line instructions that you would use in a Unix command prompt and incorporating them into one program. There are many versions of Unix. Some

More information

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing Content 3 Operating Systems The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail. How to log into (and out

More information

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou EECS 2031 - Software Tools Lab 2 Tutorial: Introduction to UNIX/Linux Tilemachos Pechlivanoglou (tipech@eecs.yorku.ca) Sep 22 & 25, 2017 Material marked with will be in your exams Sep 22 & 25, 2017 Introduction

More information

Temple University Computer Science Programming Under the Linux Operating System January 2017

Temple University Computer Science Programming Under the Linux Operating System January 2017 Temple University Computer Science Programming Under the Linux Operating System January 2017 Here are the Linux commands you need to know to get started with Lab 1, and all subsequent labs as well. These

More information

CS4023 Week04 Lab Exercise

CS4023 Week04 Lab Exercise CS4023 Week04 Lab Exercise Lab Objective: We will use this lab to log in to our Linux accounts and to look at some simple programs that perform a few elementary system calls. By the end of the lab we will

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