Lecture 03. Shell programming Part 1. CSC 320: Systems Programming

Size: px
Start display at page:

Download "Lecture 03. Shell programming Part 1. CSC 320: Systems Programming"

Transcription

1 Lecture 03 Shell programming Part 1 CSC 320: Systems Programming

2 What is Shell? Shell is a UNIX term for the interactive user interface with an operating system. The shell is the layer of programming that understands and executes the commands a user enters. In some systems, the shell is called a command interpreter. A shell usually implies an interface with a command syntax (think of the DOS operating system and its "C:>" prompts and user commands such as "dir" and "edit"). Spring Dr. Safwan Qasem 2

3 Linux Shell Linux has a variety of different shells: sh => Bourne shell, csh => C shell, ksh => Korn shell, tcsh => TC shell, bash => Bourne Again shell. Many Shells can exist in the same system The most popular and default shell in Linux is bash : Bash is the shell appearing in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). Bash offers functional improvements over sh for both programming and interactive use. The GNU Project was launched in 1984 to develop a complete UNIX-like operating system. Spring Dr. Safwan Qasem 3

4 Linux Shell, Cont. bash is not only an excellent command line shell, but a scripting language in itself. Shell scripting allows users to use the shell's abilities and to automate a lot of tasks that would otherwise require a lot of commands. For more details: A bash guide for beginners List of bash commands Spring Dr. Safwan Qasem 4

5 Programming vs. scripting. Programming languages are generally a lot more powerful and a lot faster than scripting languages. Programming languages generally start from source code and are compiled into an executable. This executable is not easily ported into different operating systems. A scripting language also starts from source code. An interpreter reads the instructions in the source file one by one and executes them sequentially, even if. No prior compilation is needed. Interpreted programs are generally slower than compiled programs. The main advantage is that they can be easily ported the source file to any operating system. bash is a scripting language. Other examples of scripting languages are Perl, Lisp, and Tcl. Spring Dr. Safwan Qasem 5

6 Bash Programming Make sure you have UNIX username and password (Contact the Computer Center). Spring Dr. Safwan Qasem 6

7 Log in! Bash programming 3 tries to get valid username and password right Show who is logged in w or who finger Logout! exit CTRL-D Spring Dr. Safwan Qasem 7

8 ls, cd and pwd Start a Terminal: Menu: Application => Accessories => Terminal SQ@Linux:~$> pwd /home/sqasem SQ@Linux:~$> ls.... SQ@Linux:~$> cd.. SQ@Linux:~$> pwd /home SQ@Linux:~$> ls.... pwd: present work directory ls : list directory cd: Change directory Spring Dr. Safwan Qasem 8

9 ls, cd and pwd, cont. cd pwd /home/sqasem cd.. pwd /home cd. pwd /home cd ~ SQ@Linux:~$> pwd /home/sqasem SQ@Linux:~$> cd /usr/src SQ@Linux:~$> ls.... Spring Dr. Safwan Qasem 9

10 Create and delete directory mkdir./develop ls.... (check that develop exists) cd./develop pwd /home/sqasem/develop ls.... (check the contents of develop) mkdir: make directory rmdir: remove directory.... (notice entries. and file.. ) SQ@Linux:~$> cd.. SQ@Linux:~$> rmdir./develop SQ@Linux:~$> ls....(check that develop does not exist) SQ@Linux:~$> mkdir./develop Create the directory./develop again Spring Dr. Safwan Qasem 10

11 Filenames rules File names that begin with a period character are hidden from ls, but are available to all other commands including ls -a. Many configuration files are hidden including shell configuration files in the home directory. SQ@Linux:~$> cd ~ SQ@Linux:~$> ls -a.... (check the contents of home directory) File names in Linux are case sensitive. The file names Toto" and toto" are different files. Linux does not recognize any "file extension". Ex: filename.exe can be text file, and filename.txt can be an executable. In file names avoid spaces. filename, file_name, file-name and file.name are way better than file name. Spring Dr. Safwan Qasem 11

12 Access to documentation Commands are generally documented using the command man. man man.... man will present the manual page of the specified entry using more or less. In Linux, the default is less, but can be overridden. man pages are subdivided into various sections: man time.... man 3 time No manual entry for time in section 3 See 'man 7 undocumented' for help when manual pages are not available. Spring Dr. Safwan Qasem 12

13 Access to documentation The table below shows the section numbers of the manual followed by the types of pages they contain: 1 Executable programs or shell commands 2 System calls (functions provided by the kernel) 3 Library calls (functions within program libraries) 4 Special files (usually found in /dev) 5 File formats and conventions eg /etc/passwd 6 Games 7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7) 8 System administration commands (usually only for root) 9 Kernel routines [Non standard] Spring Dr. Safwan Qasem 13

14 File creation & output redirection cd./develop touch./myfirst_file.txt ls -a.... [notice the file size 0] ls a /usr/bin >./myfirst_file.txt.... [notice No output on the screen. Where is it??] SQ@Linux:~$> ls -a.... [notice the file size > 0] SQ@Linux:~$> wc l./myfirst_file.txt.... [notice the number of lines] SQ@Linux:~$> ls a >./myfirst_file.txt SQ@Linux:~$> wc l./myfirst_file.txt.... [notice the number of lines did not change] SQ@Linux:~$> ls a >>./myfirst_file.txt SQ@Linux:~$> wc l./myfirst_file.txt.... [notice the number of lines doubled. Why?] Spring Dr. Safwan Qasem 14

15 file, more and less more./myfirst_file.txt... less./myfirst_file.txt... What are the differences? Use man to learn about them? [Reading Assignment] file /etc/bash.bashrc... [What do you get?] file /usr/bin/make... [What do you get?] file /lib/libx86.so.1... [What do you get?] Spring Dr. Safwan Qasem 15

16 ls and its options file /etc/bash.bashrc... [What do you get?] Command $>ls Effect $>ls -a $>ls A $>ls -1 $>ls -l $>ls -g $>ls -G Show the hidden files (starting with `.` Like above without `.`. And `..` (-one) List one file per line (-L small letter) show details of files like -l, but do not list owner --no-group. In a long listing (-l), don't print group names. $>ls -h --human-readable. With -l, print sizes in human readable format (e.g., 1K 234M 2G) $>ls -d $>ls -s $>ls -S $>ls -r list directory entries instead of contents, and do not dereference symbolic links --size. Print the allocated size of each file, in blocks sort by file size --reverse. Reverse order while sorting $>ls -R --recursive. List subdirectories recursively Spring Dr. Safwan Qasem 16

17 ls l output -rwxr-xr-x 1 sqasem sqasem :51 shell_exam_fall_2011.sh -rw-r--r-- 1 sqasem sqasem :21 test1.txt -rwxr-xr-x 1 sqasem sqasem :04 testfile.sh -rwxr-xr-x 1 sqasem sqasem :20 testnumbers.sh -rw-r--r-- 1 sqasem sqasem :21 test.txt File Name Modification Time Size (in bytes) Group Owner File Permissions Spring Dr. Safwan Qasem 17

18 Summary of less Commands Commands marked with * may be preceded by a number, N. Notes in parentheses indicate the behavior if N is given. Command Effect h H Display this help. q :q Q :Q Exit. e CR * Forward one line (or N lines). y * Backward one line (or N lines). f SPACE * Forward one window (or N lines). b * Backward one window (or N lines). /pattern * Search forward for (N-th) matching line?pattern * Search backward for (N-th) matching line. n * Repeat previous search (for N-th occurrence). N * Repeat previous search in reverse direction. Spring Dr. Safwan Qasem 18

19 Directories found in UNIX systems Directory / Root of the file system /boot /bin /usr/bin Role and use All the files required for booting Linux on a system. Binaries which are absolutely essential to run Linux. Binaries for use by the system users /sbin & /usr/sbin The system-administration tools. mostly for use by the superuser. /lib /home /root /tmp /mnt, /media /opt /lost+found The libraries required by system-applications. (Like DLLs) All users home directories. User: smith, Directory /home/smith The home-directory for the super-user: root Applications can write temporary files here. peripherals and other file-systems are mounted here. The directory where optional software are installed. When a disk-check finds files which are damaged or which are not linked to any directory, they are recovered to this directory. Spring Dr. Safwan Qasem 19

20 Directories found in UNIX systems /usr Everything related to users applications /usr/include The header-files required by programs for compilation. /usr/lib The libraries required by user-applications. /usr/src The source-code for the Linux kernel. /usr/local Files and applications for use on this particular machine. /usr/share Information that can be shared by most users. /usr/share/x11 Support files for the X Windows system /usr/share/dict Dictionaries for the spelling checker. Bet you didn't know that Linux had a spelling checker. See look and ispell. /usr/share/doc Various documentation files in a variety of formats. /usr/share/man The man pages are kept here. /usr/x11r6 Files needed by the X Window system. /var Files whose contents vary duriong run-time: /var/log The log-files of the system. /var/spool Directories for mail, news, printing and other queued work. Spring Dr. Safwan Qasem 20

21 Directories found in UNIX systems /etc All the configuration files for the various software are stored here. /etc/passwd The passwd file contains the essential information for each user. It is here that users are defined. /etc/fstab The fstab file contains a table of devices that get mounted when your system boots. This file defines your disk drives. /etc/hosts This file lists the network host names and IP addresses that are intrinsically known to the system. /etc/init.d This directory contains the scripts that start various system services typically at boot time. Spring Dr. Safwan Qasem 21

22 /dev Directories found in UNIX systems In Unix, the system devices are represented as entries in the filesystem in the special directory /dev. Every entry in this directory corresponds to one of the system devices (peripherals). It is possible to read from and write to devices the same way as for files. For example /dev/fd0 is the first floppy disk drive, /dev/sda (/dev/hda on older systems) is the first IDE hard drive. Spring Dr. Safwan Qasem 22

23 Directories found in UNIX systems /proc The /proc directory is a virtual directory as it does not have representation in the file system. The /proc directory gives hooks to access the kernel status and configure it on runtime. It shows a set of numbers and some entries: The numbers correspond to the process-ids of the processes running on the system. The entries (like filesystems, consoles, cpuinfo, diskstats, version, ) permit access to the current configuration of the system. SQ@Linux:~$> /proc/cpuinfo Spring Dr. Safwan Qasem 23

24 mv, cp and rm cd ~/develop mv./myfirst_file.txt./my_1st_file.txt ls -a.... [notice the filename changed] cp./my_1st_file.txt./my_2nd_file.txt ls -a.... [notice: Now we have two files of the same size] Copy the file my_2nd_file.txt to your home directory? And check its existence. cp./my_2nd_file.txt ~ SQ@Linux:~$> ls a ~.... [notice: Now we have two files of the same size] SQ@Linux:~$> rm ~/my_2nd_file.txt SQ@Linux:~$> ls a ~.... [notice: The file has been removed] Spring Dr. Safwan Qasem 24

25 Cmd. Completion & history ls /bi<tab> ls /bin/<tab> Display all 134 possibilities? (y or n) n SQ@linux:~$ ls /bin/le<tab> SQ@linux:~$ ls /bin/less<tab> less lessecho lessfile lesskey lesspipe SQ@linux:~$ fire<tab> Use [Arrow up] at the prompt to move to previous commands Command history prints a numbered list of previous commands:!n Refer to command line n.!-n Refer to the current command minus n.!! Refer to the previous command. This is a synonym for `!-1'.!string Refer to the most recent command preceding the current position in the history list starting with string. Spring Dr. Safwan Qasem 25

26 Commands: try & understand 1 (man pages) A alias Create an alias apropos Search Help manual pages (man -k) aspell Spell Checker awk Find and Replace text, database sort/validate/index B basename Strip directory and suffix from filenames bash GNU Bourne-Again SHell bc Arbitrary precision calculator language bg Send to background bzip2 Compress or decompress named file(s) C cal Display a calendar cat Concatenate and display the content of files cd Change Directory chgrp Change group ownership chmod Change access permissions chown Change file owner and group chroot Run a command with a different root directory clear Clear terminal screen cmp Compare two files comm Compare two sorted files line by line command Run a command - ignoring shell functions cp Copy one or more files to another location cron Daemon to execute scheduled commands crontab Schedule a command to run at a later time csplit Split a file into context-determined pieces cut Divide a file into several parts D date Display or change the date & time dc Desk Calculator declare Declare variables and give them attributes df Display free disk space diff Display the differences between two files diff3 Show differences among three files dir Briefly list directory contents dirname Convert a full pathname to just a path du Estimate file space usage Spring Dr. Safwan Qasem 26

27 Commands: try & understand 2 E echo Display message on screen env Environment variables eval Evaluate several commands/arguments exit Exit the shell export Set an environment variable expr Evaluate expressions F fg Send job to foreground fgrep Search file(s) for lines that match a fixed string file Determine file type find Search for files that meet a desired criteria free Display memory usage ftp File Transfer Protocol fuser Identify/kill the process that is accessing a file G grep Search file(s) for lines that match a given pattern groups Print group names a user is in gzip Compress or decompress named file(s) H head Output the first part of file(s) help Display help for a built-in command history Command History hostname Print or set system name I id Print user and group id's ifconfig Configure a network interface J jobs List active jobs join Join lines on a common field K kill Stop a process from running killall Kill processes by name L less Display output one screen at a time let Perform arithmetic on shell variables ln Make links between files local Create variables locate Find files logname Print current login name logout Exit a login shell look Display lines beginning with a given string ls List information about file(s) lsof List open files Spring Dr. Safwan Qasem 27

28 Commands: try & understand 3 M make Recompile a group of programs man Help manual mkdir Create new folder(s) mkfifo Make FIFOs (named pipes) more Display output one screen at a time mount Mount a file system mv Move or rename files or directories N netstat Networking information nice Set the priority of a command or job nl print file with line numbers nslookup Query Internet name servers interactively O open Open a file in its default application op Operator access P passwd Modify a user password paste Merge lines of files pathchk Check file name portability ping Test a network connection pkill Stop processes from running printenv Print environment variables ps Process status pwd Print Working Directory R read Read a line from standard input rename Rename files rev Reverse lines of a file rm Remove files rmdir Remove folder(s) S sdiff Merge two files interactively sed Stream Editor seq Print numeric sequences set Manipulate shell variables and functions sleep Delay for a specified time sort Sort text files split Split a file into fixed-size pieces ssh Secure Shell client (remote login program) sudo Execute a command as another user sum Print a checksum for a file suspend Suspend execution of this shell symlink Make a new name for a file sync Synchronize data on disk with memory Spring Dr. Safwan Qasem 28

29 Commands: try & understand 4 T tail Output the last part of files tar Tape ARchiver tee Redirect output to multiple files test Evaluate a conditional expression time Measure Program running time times User and system times touch Change file timestamps top List processes running on the system tr Translate, squeeze, and/or delete characters type Describe a command U umask Users file creation mask umount Unmount a device unalias Remove an alias uname Print system information uniq Uniquify files unset Remove variable or function names users List users currently logged in V vi Text Editor W wait wait for a process to complete watch Execute/display a program periodically wc Print byte, word, and line counts whereis Search the user's $path, man pages and source files for a program which Search the user's $path for a program file while Execute commands who Print all usernames currently logged in whoami Print the current user id and name (`id -un') Wget Retrieve web pages or files via HTTP, HTTPS or FTP write Send a message to another user X xargs Execute utility, passing constructed argument list(s) xdg-open Open a file or URL in the user's preferred application. yes Print a string until interrupted. Run a command script in the current shell Spring Dr. Safwan Qasem 29

30 History & cmd. completion his<tab> history... 4 cp./my_1st_file.txt./my_2nd_file.txt 5 ls a 6 cp./my_2nd_file.txt ~ 7 ls a ~ 8 rm ~/my_2nd_file.txt 9 ls a ~ 10 mv./myfirst_file.txt./my_1st_file.txt 11 ls a SQ@Linux:~$>!4.... [notice what happened] SQ@Linux:~$>!cp.... [notice what happened] Spring Dr. Safwan Qasem 30

31 Output redirection Most command line programs display results on the screen, by using a facility called standard output. By default, standard output directs its contents to the display. To save data for further processing, standard output can be redirected to a file by using the ">" or ">>" characters: SQ@Linux:~$> ls a >./myfirst_file.txt Using >, the destination file is erased every time before writing new content. Using >> the new content is appended at the end of the destination file. Spring Dr. Safwan Qasem 31

32 Output redirection >filename redirects just standard output to filename (Overwrite). >>filename redirects just standard output to filename (Append). 2>filename redirects just standard error to filename. >&filename redirects the standard output and error to the file called filename: cmd > f1 2> f2 redirects the standard output to f1 and standard error to f2. cmd tee f1 redirects the output to f1 and to the standard output. last grep ^sqasem tee root-logins.txt less root-logins.txt Spring Dr. Safwan Qasem 32

33 Input redirection Many commands can accept input from the keyboard by using a facility called standard input. By default, standard input gets its contents from the keyboard. Like standard output, it can be redirected to read input from a file by using the <" character: SQ@Linux:~$> sort <./myfirst_file.txt It is possible to combine input and output redirection SQ@Linux:~$> sort < file_list.txt > sorted_file_list.txt Spring Dr. Safwan Qasem 33

34 Input redirection sort <<endoft > Ali > taha > mohammad > barmuda > calife > zebra > imam > aamam > endoftext > endoft aamam Ali barmuda calife endoftext imam mohammad taha zebra The subsequent text up to the word endoft is used as input to the command in this case sort. Spring Dr. Safwan Qasem 34

35 pipes Cmd1 cmd2 Standard output of cmd1 is used as standard input of cmd2 ls al /usr/bin.... [notice what happened] ls al /usr/bin less.... [notice what happened] ls lt ~ head.... [Displays the 10 newest files in the home directory] SQ@linux:~$ du sort -nr.... [Displays a list of directories and how much space they consume, sorted from the largest to the smallest] SQ@linux:~$ find. -type f -print wc l.... [Displays the total number of files in the current working directory and all of its subdirectories] Spring Dr. Safwan Qasem 35

36 Practice Bash commands apropos time > tzselect less./ tzselect... [What is the function of apropos?] ls -l awk '{ print "directory/file " $8 " has permission " $1}... [Notice the new formatting? Compare with ls l alone] SQ@linux:~$ df -h sort -rnk 5 head -3 awk '{ print "Partition " $6 "\t: " $5 " full!" }... [Notice the new formatting? Try the command part by part. Use history] SQ@linux:~$ Cal... [Notice the output] SQ@linux:~$ cal [Notice the output] SQ@linux:~$ cal -m3... [Notice the output] SQ@linux:~$ cal y... [Notice the output] SQ@linux:~$ cal [Find your birthday in gregorian] Spring Dr. Safwan Qasem 36

37 Practice Bash commands ls -l -h /bin cut -d' ' -f1,4,8 dc * P SQ@linux:~$ yes I am coming in few minutes SQ@linux:~$ ls xargs more Spring Dr. Safwan Qasem 37

38 Variables and quotes MY_NAME= Mohammad Ali' echo $MY_NAME Mohammad Ali echo Hello $MY_NAME " Hello Mohammad Ali echo Hello $MY_VAR' Hello $MY_VAR echo $HOME... [What do you get] echo $USER... [What do you get] Spring Dr. Safwan Qasem 38

39 First Bash Script Start xemacs or emacs and type the following inside it: #!/bin/bash echo This is my first script Save the file Ctrl-x Ctrl-s Select the right directory and give a name, like: my_first_script.sh Try: SQ@linux:~$./my_first_Script.sh bash:./first_script.sh: Permission denied Spring Dr. Safwan Qasem 39

40 First Bash Script Run the script using /usr/bash This is my first script Make the script executable 700./my_first_Script.sh Check the script access permission l./my_first_script.sh -rwxr-xr-x 1 userid userid :51 my_first_script.sh Run the script directly SQ@linux:~$my_first_Script.sh...[What do you get?] my_first_script.sh : command not found SQ@linux:~$./my_first_Script.sh This is my first script Spring Dr. Safwan Qasem 40

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name LINUX Commands alias Create an alias apropos Search Help manual pages (man -k) awk Find and Replace text, database sort/validate/index break Exit from a loop builtin Run a shell builtin bzip2 Compress

More information

Bash command line for Linux. adduser Add a user to the system. addgroup Add a group to the system. Create an alias

Bash command line for Linux. adduser Add a user to the system. addgroup Add a group to the system. Create an alias Bash command line for Linux. adduser Add a user to the system addgroup Add a group to the system alias Create an alias apropos Search Help manual pages (man -k) apt-get Search for and install software

More information

Kali Linux Commands Cheat Sheet

Kali Linux Commands Cheat Sheet Kali Linux Commands Cheat Sheet Todos os comandos básicos de A a Z em Kali Linux. A apropos : Search Help manual pages (man -k) apt-get : Search for and install software packages (Debian/Ubuntu) aptitude

More information

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018 GNU/Linux 101 Casey McLaughlin Research Computing Center Spring Workshop Series 2018 rccworkshop IC;3df4mu bash-2.1~# man workshop Linux101 RCC Workshop L101 OBJECTIVES - Operating system concepts - Linux

More information

PDF Downloaded from StuffPrime All Tech Stuff That Matters

PDF Downloaded from StuffPrime All Tech Stuff That Matters List Of Latest Kali Linux Commands In 2018 PDF Downloaded from StuffPrime All Tech Stuff That Matters Kali Linux Command (A-Z) Output From A apropos apt-get aptitude aspell awk Get Help Related Documents

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

List of Linux Commands in an IPm

List of Linux Commands in an IPm List of Linux Commands in an IPm Directory structure for Executables bin: ash cpio false ln mount rm tar zcat busybox date getopt login mv rmdir touch cat dd grep ls perl sed true chgrp df gunzip mkdir

More information

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs Summer 2010 Department of Computer Science and Engineering York University Toronto June 29, 2010 1 / 36 Table of contents 1 2 3 4 2 / 36 Our goal Our goal is to see how we can use Unix as a tool for developing

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

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

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

Useful Unix Commands Cheat Sheet

Useful Unix Commands Cheat Sheet Useful Unix Commands Cheat Sheet The Chinese University of Hong Kong SIGSC Training (Fall 2016) FILE AND DIRECTORY pwd Return path to current directory. ls List directories and files here. ls dir List

More information

Linux Essentials Objectives Topics:

Linux Essentials Objectives Topics: Linux Essentials Linux Essentials is a professional development certificate program that covers basic knowledge for those working and studying Open Source and various distributions of Linux. Exam Objectives

More information

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Contents 1. Background on Linux 2. Starting / Finishing 3. Typing Linux Commands 4. Commands to Use Right Away 5. Linux help continued 2 Contents 6.

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

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2) BANK ON & SHELL PROGRAMMING-502 (CORE PAPER-2) TOPIC 1: VI-EDITOR MARKS YEAR 1. Explain set command of vi editor 2 2011oct 2. Explain the modes of vi editor. 7 2013mar/ 2013 oct 3. Explain vi editor 5

More information

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011 Unix/Linux Operating System Introduction to Computational Statistics STAT 598G, Fall 2011 Sergey Kirshner Department of Statistics, Purdue University September 7, 2011 Sergey Kirshner (Purdue University)

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

5/20/2007. Touring Essential Programs

5/20/2007. Touring Essential Programs Touring Essential Programs Employing fundamental utilities. Managing input and output. Using special characters in the command-line. Managing user environment. Surveying elements of a functioning system.

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

Filesystem Hierarchy Operating systems I800 Edmund Laugasson

Filesystem Hierarchy Operating systems I800 Edmund Laugasson Filesystem Hierarchy Operating systems I800 Edmund Laugasson edmund.laugasson@itcollege.ee There has been used materials from Margus Ernits, Katrin Loodus when creating current slides. Current document

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

for more :-

for more :- JNTU ONLINE EXAMINATIONS [Mid 1 - UNIX] 1. C programmers in the unix environment has complete access to the entire system call library as well as the a. static library functions b. dynamic library functions

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

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

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Stephen Pauwels Computer Systems Academic Year 2018-2019 Overview of the Semester UNIX Introductie Regular Expressions Scripting Data Representation Integers, Fixed point,

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

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

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

Files and Directories

Files and Directories CSCI 2132: Software Development Files and Directories Norbert Zeh Faculty of Computer Science Dalhousie University Winter 2019 Files and Directories Much of the operation of Unix and programs running on

More information

Introduction to Linux Part I: The Filesystem Luca Heltai

Introduction to Linux Part I: The Filesystem Luca Heltai The 2nd workshop on High Performance Computing Introduction to Linux Part I: The Filesystem Luca Heltai SISSA/eLAB - Trieste Adapted from a presentation by Michael Opdenacker Free Electrons http://free-electrons.com

More information

Contents. xxvii. Preface

Contents. xxvii. Preface Preface xxvii Chapter 1: Welcome to Linux 1 The GNU Linux Connection 2 The History of GNU Linux 2 The Code Is Free 4 Have Fun! 5 The Heritage of Linux: UNIX 5 What Is So Good About Linux? 6 Why Linux Is

More information

Common UNIX Utilities Alphabetical List

Common UNIX Utilities Alphabetical List Common UNIX Utilities Alphabetical List addbib - create or extend a bibliographic database apropos - locate commands by keyword lookup ar - create library archives, and add or extract files at - execute

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

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Introduction to UNIX Stephen Pauwels University of Antwerp October 2, 2015 Outline What is Unix? Getting started Streams Exercises UNIX Operating system Servers, desktops,

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

CS197U: A Hands on Introduction to Unix

CS197U: A Hands on Introduction to Unix CS197U: A Hands on Introduction to Unix Lecture 11: WWW and Wrap up Tian Guo University of Massachusetts Amherst CICS 1 Reminders Assignment 4 was graded and scores on Moodle Assignment 5 was due and you

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

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute Shells The UNIX Shells How shell works Fetch command Analyze Execute Unix shells Shell Originator System Name Prompt Bourne Shell S. R. Bourne /bin/sh $ Csh Bill Joy /bin/csh % Tcsh Ken Greer /bin/tcsh

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

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

Lab 2: Linux/Unix shell

Lab 2: Linux/Unix shell Lab 2: Linux/Unix shell Comp Sci 1585 Data Structures Lab: Tools for Computer Scientists Outline 1 2 3 4 5 6 7 What is a shell? What is a shell? login is a program that logs users in to a computer. When

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

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

UNIX System Programming Lecture 3: BASH Programming

UNIX System Programming Lecture 3: BASH Programming UNIX System Programming Outline Filesystems Redirection Shell Programming Reference BLP: Chapter 2 BFAQ: Bash FAQ BMAN: Bash man page BPRI: Bash Programming Introduction BABS: Advanced Bash Scripting Guide

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

2) clear :- It clears the terminal screen. Syntax :- clear

2) clear :- It clears the terminal screen. Syntax :- clear 1) cal :- Displays a calendar Syntax:- cal [options] [ month ] [year] cal displays a simple calendar. If arguments are not specified, the current month is displayed. In addition to cal, the ncal command

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

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes CSE 390a Lecture 2 Exploring Shell Commands, Streams, Redirection, and Processes slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson http://www.cs.washington.edu/390a/ 1 2 Lecture

More information

BASH SHELL SCRIPT 1- Introduction to Shell

BASH SHELL SCRIPT 1- Introduction to Shell BASH SHELL SCRIPT 1- Introduction to Shell What is shell Installation of shell Shell features Bash Keywords Built-in Commands Linux Commands Specialized Navigation and History Commands Shell Aliases Bash

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

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo UNIX COMMANDS AND SHELLS UNIX Programming 2015 Fall by Euiseong Seo What is a Shell? A system program that allows a user to execute Shell functions (internal commands) Other programs (external commands)

More information

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description: BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description: This course provides Bioinformatics students with the

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

ECE 471 Embedded Systems Lecture 10

ECE 471 Embedded Systems Lecture 10 ECE 471 Embedded Systems Lecture 10 Vince Weaver http://www.eece.maine.edu/ vweaver vincent.weaver@maine.edu 3 October 2013 Announcements Homework #2 has been assigned. extended until the 10th. The due

More information

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX 15th Jan. 2000 / 3:55 am Part 1: Working with files and rights ------------------------------------- cp

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

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103 TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103 CompTIA Linux+ Powered by LPI LX0-103 Objectives The Linux+ Powered by LPI Exam: LX0-103 exam covers the following topics. #

More information

Exam Linux-Praxis - 1 ( From )

Exam Linux-Praxis - 1 ( From  ) Exam Linux-Praxis - 1 ( From http://www.linux-praxis.de ) (1)Which of the following commands results in mailing the content of the current directory to Bob? A. mail Bob < ls B. ls > mail Bob C. ls mail

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

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering 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

More information

Unix Tools / Command Line

Unix Tools / Command Line Unix Tools / Command Line An Intro 1 Basic Commands / Utilities I expect you already know most of these: ls list directories common options: -l, -F, -a mkdir, rmdir make or remove a directory mv move/rename

More information

Systems Programming/ C and UNIX

Systems Programming/ C and UNIX Systems Programming/ C and UNIX Alice E. Fischer September 6, 2017 Alice E. Fischer Systems Programming Lecture 2... 1/28 September 6, 2017 1 / 28 Outline 1 Booting into Linux 2 The Command Shell 3 Defining

More information

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples EECS2301 Title Unix/Linux Introduction These slides are based on slides by Prof. Wolfgang Stuerzlinger at York University Warning: These notes are not complete, it is a Skelton that will be modified/add-to

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

System Programming. Unix Shells

System Programming. Unix Shells Content : Unix shells by Dr. A. Habed School of Computer Science University of Windsor adlane@cs.uwindsor.ca http://cs.uwindsor.ca/ adlane/60-256 Content Content 1 Introduction 2 Interactive and non-interactive

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

The Online Unix Manual

The Online Unix Manual ACS-294-001 Unix (Winter Term, 2018-2019) Page 14 The Online Unix Manual Unix comes with a large, built-in manual that is accessible at any time from your terminal. The Online Manual is a collection of

More information

CSCM98 Lab Class #5 Getting familiar with the command line

CSCM98 Lab Class #5 Getting familiar with the command line CSCM98 Lab Class #5 Getting familiar with the command line Lab Class Description. Unix has some powerful commands that can be combined inside shell scripts. Today we will have a look at various commands

More information

Introduction to Linux

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

More information

Introduction to Linux

Introduction to Linux Introduction to Linux January 2011 Don Bahls User Consultant (Group Leader) bahls@arsc.edu (907) 450-8674 Overview The shell Common Commands File System Organization Permissions Environment Variables I/O

More information

Command-line interpreters

Command-line interpreters Command-line interpreters shell Wiki: A command-line interface (CLI) is a means of interaction with a computer program where the user (or client) issues commands to the program in the form of successive

More information

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming IIMII 003-007303 M.C.A. (Sem.-lll) (CBCS) Examination November-20 13 CCA-3003 Operating System and LinuxlUnix programming Faculty Code: 003 Subject Code: 007303 Time: 2'/' Hoursl ITotal Marks: 70 I. Attempt

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

Introduction to Linux Organizing Files

Introduction to Linux Organizing Files Introduction to Linux Organizing Files Computational Science and Engineering North Carolina A&T State University Instructor: Dr. K. M. Flurchick Email: kmflurch@ncat.edu Arranging, Organizing, Packing

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

Student Remote Login Procedure (see picture below): 1. Start SSH Secure Shell 2. Click the computer icon (4 th on the toolbar) 3.

Student Remote Login Procedure (see picture below): 1. Start SSH Secure Shell 2. Click the computer icon (4 th on the toolbar) 3. Student Remote Login Procedure (see picture below): 1. Start SSH Secure Shell 2. Click the computer icon (4 th on the toolbar) 3. Enter stargate.ncc.edu in the text field labeled Host Name: 4. Enter the

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

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

Crash Course in Unix. For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix. -or- Unix in a Nutshell (an O Reilly book).

Crash Course in Unix. For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix. -or- Unix in a Nutshell (an O Reilly book). Crash Course in Unix For more info check out the Unix man pages -orhttp://www.cs.rpi.edu/~hollingd/unix -or- Unix in a Nutshell (an O Reilly book). 1 Unix Accounts To access a Unix system you need to have

More information

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions 1Z0-409 Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions Table of Contents Introduction to 1Z0-409 Exam on Oracle Linux Fundamentals (Oracle Partner Network)... 2 Oracle

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Phil Mercurio The Scripps Research Institute mercurio@scripps.edu 1 Session Overview What is Linux Shells & Windows The Linux File System Assorted Commands 2 What Is Linux? Linux

More information

Introduction to UNIX command-line

Introduction to UNIX command-line Introduction to UNIX command-line Boyce Thompson Institute March 17, 2015 Lukas Mueller & Noe Fernandez Class Content Terminal file system navigation Wildcards, shortcuts and special characters File permissions

More information

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT Unix as a Platform Exercises + Solutions Course Code: OS 01 UNXPLAT Working with Unix Most if not all of these will require some investigation in the man pages. That's the idea, to get them used to looking

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

5/8/2012. Exploring Utilities Chapter 5

5/8/2012. Exploring Utilities Chapter 5 Exploring Utilities Chapter 5 Examining the contents of files. Working with the cut and paste feature. Formatting output with the column utility. Searching for lines containing a target string with grep.

More information

LPIC-1 System Administrator

LPIC-1 System Administrator LPIC-1 System Administrator The world s largest and most recognized Linux Certification LPIC-1 is the first certification in LPI s multi-level Linux professional certification program. The LPIC-1 will

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

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (( )) (( )) [ x x ] cdc communications, inc. [ x x ] \ / presents... \ / (` ') (` ') (U) (U) Gibe's UNIX COMMAND Bible ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The latest file from the Cow's

More information

Introduction to Linux

Introduction to Linux Introduction to Linux University of Bristol - Advance Computing Research Centre 1 / 47 Operating Systems Program running all the time Interfaces between other programs and hardware Provides abstractions

More information

Linux at the Command Line Don Johnson of BU IS&T

Linux at the Command Line Don Johnson of BU IS&T Linux at the Command Line Don Johnson of BU IS&T We ll start with a sign in sheet. We ll end with a class evaluation. We ll cover as much as we can in the time allowed; if we don t cover everything, you

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

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

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

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

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

CSC209H Lecture 1. Dan Zingaro. January 7, 2015 CSC209H Lecture 1 Dan Zingaro January 7, 2015 Welcome! Welcome to CSC209 Comments or questions during class? Let me know! Topics: shell and Unix, pipes and filters, C programming, processes, system calls,

More information

Operating Systems Lab 1 (Users, Groups, and Security)

Operating Systems Lab 1 (Users, Groups, and Security) Operating Systems Lab 1 (Users, Groups, and Security) Overview This chapter covers the most common commands related to users, groups, and security. It will also discuss topics like account creation/deletion,

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