Practical 5. Linux Commands: Working with Files

Size: px
Start display at page:

Download "Practical 5. Linux Commands: Working with Files"

Transcription

1 Practical 5 Linux Commands: Working with Files 1. Ps The ps command on linux is one of the most basic commands for viewing the processes running on the system. It provides a snapshot of the current processes along with detailed information like user id, cpu usage, memory usage, command name etc. It does not display data in real time like top or htop commands. Ps f : It generates a full listing.

2 Ps a : list information about all processes most frequently requested. Ps A or e : List information for all processes. Ps j : Print session and group ID. 2. Top c top command which is one of the most frequently used commands in our daily system administrative jobs. top command displays processor activity of your Linux box and also displays tasks managed by kernel in real-time. It ll show processor and memory are being used and other information like running processes. This may help you to take correct action. top command found in UNIX-like operating systems. In this example, it will show information like tasks, memory, cpu and swap. Press q or press clt+z to quit window. Top c command will show command line display instead of just command name. 3. Kill Linux Operating System comes with Kill command to terminate a process. The command makes it possible to continue running the server without the need of reboot after a major change/update. Here comes the great power of Linux and this is one of the reasons, why Linux is running on 90% of servers, on the planet. Kill command send a signal, a specified signal to be more perfect to a process. The kill command can be executed in a number of ways, directly or from a shell script. Using kill command from /usr/bin provide you some extra feature to kill a process by process name using pkill. The common syntax for kill command is:

3 # kill [signal or option] PID(s) In order to kill a process, we need to know the Process ID of a process. A Process is an instance of a program. Every-time a program starts, automatically an unique PID is generated for that process. Every Process in Linux, have a pid. For this typr ps command and you can find the process id. For example, we want to kill process with ID 9564 then follow the command: Kill 9564 and press enter. Before we step ahead and execute a kill command, some important points to be noted: 1. A user can kill all his process. 2. A user can not kill another user s process. 3. A user can not kill processes System is using. 4. A root user can kill System-level-process and the process of any user. Pkil : This stands for process killing using their name. For example, you can see that in the below figure one process Mozilla Firefox is currently running and if I want to kill that process use following command: Pkill Mozilla and press enter.

4 Before killing After killing

5 4. Date The date command is used to print out, or change the value of, the system's time and date information. Date command is helpful to display date in several formats. It also allows you to set systems date and time. When you execute date command without any option, it will display the current date and time as shown below. Time

6 Date Format FORMAT is a sequence of characters which specifies how output will appear. It comprises some combination of the following sequences: %a The abbreviated weekday name (e.g., Sun). %A The full weekday name (e.g., Sunday). %b The abbreviated month name (e.g., Jan). %B locale's full month name (e.g., January). 5. Cal Linux also has cal command to display calendar. As its name, cal just show you the calendar in many ways. There is also ncal command which have same function with cal. Cal is a built-in command which shipped in every Linux distribution. To run cal, just type cal on your console. Display calendar in full year view To display it in full year view, put the year you want to view after cal command or use -y year parameter. Let s say you want to view 2013 calendar. Simply type the below commands:

7 cal 2013 or cal -y 2013 Show specific month To fulfill this, we can use -m month_name parameter. Here s a sample: cal -m Feb Print Julian days Julian days is days one-based which numbered from January 1. To print calendar in this format, use -j parameter. cal -j

8 On Julian calender, we see that December 7, 2013 is converted into day 341 in 2013 year. Display 3 months calender You can display calender in 3 month format. One for previous, current and next month. Use - 3parameter to do it. cal -3 Display the number of month after the current month If you need to do it, use -A number parameter. cal -A 2

9 Display the number of month before the current month If you need to do it, use -B number parameter. cal -B 2 Print week numbers To show a week number, we can not use cal command. This time, we use ncal command. ncal w Ncal print a portrait view. The week numbers are printed on the bottom of each months. Weeks start on Monday By default, weeks start on Sunday. If you want to start on Monday, you can use -M parameter. Once again, this parameter is applied to ncal command only. ncal -M

10 Display country codes To print country codes in calendar, we can use -p parameter. This parameter also only applied to ncal command. ncal p 6. Uptime uptime tells you how long the system has been running. uptime gives a one-line display of the following information: The current time how long the system has been running how many users are currently logged on the system load averages for the past 1, 5, and 15 minutes. This is the same information contained in the header line displayed by w. System load averages is the average number of processes that are either in a runnable or uninterruptable state. A process in a runnable state is either using the CPU or waiting to use the CPU. A process in uninterruptable state is waiting for some I/O access, eg waiting for disk. The averages are taken over the three time intervals. Load averages are not normalized for the number of CPUs in a system, so a load average of 1 means a single CPU system is loaded all the time while on a 4 CPU system it means it was idle75% of the time.

11 7. W The w command display who is logged into the Linux and Unix-like server, and what they are doing at command execution time. w displays information about the users currently on the machine, and their processes. The header of the the output shows (in this order): the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes. The following entries are displayed for each user: login name, the tty name, the remote host they are logged in from, the amount of time they have been logged in, their idle time, JCPU, PCPU, and the command line of their current process. The JCPU time is the time used by all processes attached to the tty. It does not include past background jobs, but does include currently running background jobs. The PCPU time is the time used by the current process, named in the "what" field.

12 8. Whoami whoami prints the effective user ID. This command prints the username associated with the current effective user ID. Running whoami is the same as running the id command with the options -un. whoami syntax whoami [OPTION] Options --help --version Display a help message, and exit. Display version information, and exit.

13 9. Uname This command prints the name of current operating system.

14 Kernel name To reveal the kernel name, you can use -s parameter. uname s o/p: Linux The output will be same with uname without parameter. Kernel release If you need to know what kernel release you re using, just use -r parameter uname r o/p: el5 Kernel version Beside kernel information, uname can also fetch the kernel version. Use -v parameter for this purpose uname v o/p: 1 SMP Tue Oct 22 12:57:43 EDT 2013 Nodename Parameter -n will give you the node hostname. For example, if your hostname is devmachine, -n parameter will print dev-machine as the output of -n parameter uname n o/p: dev-machine Hardware name If you are wondering what kind of machine you re using, you can try -m parameter. It will show you information about it. uname m o/p: i686

15 i686 is indicates that your system is 32 bit operating system. While x86_64 means your system is a 64 bit system. Hardware platform Similar with hardware name, -i parameter will show you hardware platfrom. uname i o/p: i386 i386 mean you are running a 32 bit system. If the output is x86_64 it s mean that you are running 64 bis system. Processor type To see processor type, you can use -p parameter. If uname is not able to show you that information, it will show you unknown in the output. uname p o/p: i686 Operating system Uname can also used to reveal what operating system you are running. Use -o parameter to fulfill this purpose. uname o o/p: GNU/Linux All information There is one parameter that can reveal all information. It s -a parameter. It will show you all information except omit -i and -p if they are unknown. uname a o/p: Linux dev-machine el5 #1 SMP Tue Oct 22 12:57:43 EDT 2013 i686 i686 i386 GNU/Linux

16 10. Man On Linux and other Unix-like operating systems, man is the interface used to view the system's reference manuals. man is the system's manual viewer; it can be used to display manual pages, scroll up and down, search for occurrences of specific text, and other useful functions. Each argument given to man is normally the name of a program, utility or function. The manual page associated with each of these arguments is then found and displayed. A section number, if provided, will direct man to look only in that section of the manual. The default action is to search in all of the available sections, following a pre-defined order and to show only the first page found, even if page exists in several sections. For example, if we want to view about mkdir command: Man mkdir and press enter, you can see the following output. 11. Df The 'df' command stand for disk filesystem, it is used to get full summary of available and used disk space usage of file system on Linux system. Using '-h' parameter with (df -h) will shows the file system disk space statistics in human readable format, means it gives the details in bytes, megabytes and gigabyte.

17 Check File System Disk Space Usage The df command displays the information of device name, total blocks, total disk space, used disk space, available disk space and mount points on a file system. [root@tecmint ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/cciss/c0d0p % / /dev/cciss/c0d0p % /home /dev/cciss/c0d0p % /data /dev/cciss/c0d0p % /boot tmpfs % /dev/shm Display Information of all File System Disk Space Usage The same as above, but it also displays information of dummy file systems along with all the file system disk usage and their memory utilization. [root@tecmint ~]# df -a Filesystem 1K-blocks Used Available Use% Mounted on /dev/cciss/c0d0p % / proc /proc sysfs /sys devpts /dev/pts /dev/cciss/c0d0p % /home /dev/cciss/c0d0p % /data /dev/cciss/c0d0p % /boot tmpfs % /dev/shm none /proc/sys/fs/binfmt_misc sunrpc /var/lib/nfs/rpc_pipefs Show Disk Space Usage in Human Readable Format Have you noticed that above commands displays information in bytes, which is not readable yet all, because we are in a habit of reading the sizes in megabytes, gigabytes etc. as it makes very easy to understand and remember. The df command provides an option to display sizes in Human Readable formats by using -h (prints the results in human readable format (e.g., 1K 2M 3G)).

18 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 75G 23G 49G 32% / /dev/cciss/c0d0p5 24G 22G 1.2G 95% /home /dev/cciss/c0d0p3 29G 25G 2.6G 91% /data /dev/cciss/c0d0p1 289M 22M 253M 8% /boot tmpfs 252M 0 252M 0% /dev/shm Display Information of File System in Bytes To display all file system information and usage in 1024-byte blocks, use the option -k (e.g. block-size=1k) as follows. [root@tecmint ~]# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/cciss/c0d0p % / /dev/cciss/c0d0p % /home /dev/cciss/c0d0p % /data /dev/cciss/c0d0p % /boot tmpfs % /dev/shm Display Information of File System in MB To display information of all file system usage in MB (Mega Byte) use the option as -m. [root@tecmint ~]# df -m Filesystem 1M-blocks Used Available Use% Mounted on /dev/cciss/c0d0p % / /dev/cciss/c0d0p % /home /dev/cciss/c0d0p % /data /dev/cciss/c0d0p % /boot tmpfs % /dev/shm Display Information of File System in GB To display information of all file system statistics in GB (Gigabyte) use the option as df -h. [root@tecmint ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 75G 23G 49G 32% /

19 /dev/cciss/c0d0p5 24G 22G 1.2G 95% /home /dev/cciss/c0d0p3 29G 25G 2.6G 91% /data /dev/cciss/c0d0p1 289M 22M 253M 8% /boot tmpfs 252M 0 252M 0% /dev/shm Display File System Inodes Using -i switch will display the information of number of used inodes and their percentage for the file system. [root@tecmint ~]# df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/cciss/c0d0p % / /dev/cciss/c0d0p % /home /dev/cciss/c0d0p % /data /dev/cciss/c0d0p % /boot tmpfs % /dev/shm Display File System Type If you notice all the above commands output, you will see there is no file system type mentioned in the results. To check the file system type of your system use the option T. It will display file system type along with other information. [root@tecmint ~]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/cciss/c0d0p2 ext % / /dev/cciss/c0d0p5 ext % /home /dev/cciss/c0d0p3 ext % /data /dev/cciss/c0d0p1 ext % /boot tmpfs tmpfs % /dev/shm Display Information of df Command. Using help switch will display a list of available option that are used with df command. [root@tecmint ~]# df --help Usage: df [OPTION]... [FILE]... Show information about the file system on which each FILE resides, or all file systems by default.

20 Mandatory arguments to long options are mandatory for short options too. -a, --all include dummy file systems -B, --block-size=size use SIZE-byte blocks -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) -H, --si likewise, but use powers of 1000 not i, --inodes list inode information instead of block usage -k like --block-size=1k -l, --local limit listing to local file systems --no-sync do not invoke sync before getting usage info (default) -P, --portability use the POSIX output format --sync invoke sync before getting usage info -t, --type=type limit listing to file systems of type TYPE -T, --print-type print file system type -x, --exclude-type=type limit listing to file systems not of type TYPE -v (ignored) --help display this help and exit --version output version information and exit SIZE may be (or may be an integer optionally followed by) one of following: kb 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y. Report bugs to <bug-coreutils@gnu.org>. 12. Du

21 The Linux du (Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine. The du command has many parameter options that can be used to get the results in many formats. The du command also displays the files and directory sizes in a recursively manner. Du a : Displays the usage of space that each file is taking up. Du s : report total sum for each of the specified files.

22 Du-h : prints in human readable format. 13. Free

23 The most important and single way of determining the total available space of the physical memory and swap memory is by using free command. The Linux free command gives information about total used and available space of physical memory and swap memory with buffers used by kernel in Linux/Unix like operating systems. Display Memory in Bytes Free command with option -b, display the size of memory in Bytes. # free -b total used free shared buffers cached Mem: /+ buffers/cache: Swap: Display Memory in Kilo Bytes Free command with option -k, display the size of memory in (KB) Kilobytes. # free -k total used free shared buffers cached Mem:

24 -/+ buffers/cache: Swap: Display Memory in Megabytes To see the size of the memory in (MB) Megabytes use option as -m. # free -m total used free shared buffers cached Mem: /+ buffers/cache: Swap: Display Memory in Gigabytes Using -g option with free command, would display the size of the memory in GB(Gigabytes). # free -g total used free shared buffers cached Mem: /+ buffers/cache: 0 0 Swap: Display Total Line Free command with -t option, will list the total line at the end. # free -t total used free shared buffers cached Mem: /+ buffers/cache: Swap: Total: Disable Display of Buffer Adjusted Line By default the free command display buffer adjusted line, to disable this line use option as -o.

25 # free -o total used free shared buffers cached Mem: Swap: Dispaly Memory Status for Regular Intervals The -s option with number, used to update free command at regular intervals. For example, the below command will update free command every 5 seconds. # free -s 5 total used free shared buffers cached Mem: /+ buffers/cache: Swap: Show Low and High Memory Statistics The -l switch displays detailed high and low memory size statistics. # free -l total used free shared buffers cached Mem: Low: High: /+ buffers/cache: Swap: Check Free Version The -V option, display free command version information. # free -V procps version Whereis Locates the binary, source, and manual page files for a command. whereis locates source/binary and manuals sections for specified files. The supplied names are first stripped of

26 leading pathname components and any (single) trailing extension of the form ".ext", for example, ".c". Prefixes of "s." resulting from use of source code control are also handled. whereis then attempts to locate the desired program in a list of standard Linux places.

Basic Shell Commands. Bok, Jong Soon

Basic Shell Commands. Bok, Jong Soon Basic Shell Commands Bok, Jong Soon javaexpert@nate.com www.javaexpert.co.kr Focusing on Linux Commands These days, many important tasks in Linux can be done from both graphical interfaces and from commands.

More information

Checking Resource Usage in Fedora (Linux)

Checking Resource Usage in Fedora (Linux) Lab 5C Checking Resource Usage in Fedora (Linux) Objective In this exercise, the student will learn how to check the resources on a Fedora system. This lab covers the following commands: df du top Equipment

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

Linux System Administration

Linux System Administration System Processes Objective At the conclusion of this module, the student will be able to: Describe and define a process Identify a process ID, the parent process and the child process Learn the PID for

More information

Week 5 Lesson 5 02/28/18

Week 5 Lesson 5 02/28/18 Week 5 Lesson 5 02/28/18 Important Announcements Extra Credits If you haven t done so, send your pictures to risimms@cabrillo.edu for 3 points EXTRA CREDIT. Join LinkedIn for 3 points Perkins/VTEA Survey

More information

Chapter 02 Linux Installation and Usage

Chapter 02 Linux Installation and Usage Chapter 02 Linux Installation and Usage TRUEFALSE 1. A swap partition contains a filesystem. 2. When a user interacts with his computer, he interacts directly with the kernel of the computer's operating

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

Utilities. September 8, 2015

Utilities. September 8, 2015 Utilities September 8, 2015 Useful ideas Listing files and display text and binary files Copy, move, and remove files Search, sort, print, compare files Using pipes Compression and archiving Your fellow

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

National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual

National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual Objective This lab is all about running commands in Ubuntu Terminal and compiling C program in Ubuntu Table of

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 25 File Systems Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ Q 2 Data and Metadata

More information

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2 Student Name: Lab Section: Disks, Partitions, and File Systems - Part 2 of 2 1 Due Date - Upload to Blackboard by 8:30am Monday April 9, 2012 Submit the completed lab to Blackboard following the Rules

More information

NAME top display top CPU processes. SYNOPSIS top [ ] [d delay] [p pid] [q] [c] [C] [S] [s] [i] [n iter] [b]

NAME top display top CPU processes. SYNOPSIS top [ ] [d delay] [p pid] [q] [c] [C] [S] [s] [i] [n iter] [b] NAME top display top CPU processes SYNOPSIS top [ ] [d delay] [p pid] [q] [c] [C] [S] [s] [i] [n iter] [b] DESCRIPTION top provides an ongoing look at processor activity in real time. It displays a listing

More information

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems This is Worksheet and Assignment 12 This is a combined Worksheet and Assignment.. Quizzes and tests may refer to work done in this Worksheet and Assignment; save your answers. You will use a checking program

More information

CPSC 457 OPERATING SYSTEMS FINAL EXAM

CPSC 457 OPERATING SYSTEMS FINAL EXAM CPSC 457 OPERATING SYSTEMS FINAL EXAM Department of Computer Science University of Calgary Professor: Carey Williamson December 10, 2008 This is a CLOSED BOOK exam. Textbooks, notes, laptops, calculators,

More information

Introduction to UNIX/Linux

Introduction to UNIX/Linux Introduction to UNIX/Linux Biochemistry Boot Camp 2018 Session #3 Nick Fitzkee nfitzkee@chemistry.msstate.edu Operating system (OS) Some terms Command-line interface (CLI) Graphical user interface (GUI)

More information

Appendix A GLOSSARY. SYS-ED/ Computer Education Techniques, Inc.

Appendix A GLOSSARY. SYS-ED/ Computer Education Techniques, Inc. Appendix A GLOSSARY SYS-ED/ Computer Education Techniques, Inc. $# Number of arguments passed to a script. $@ Holds the arguments; unlike $* it has the capability for separating the arguments. $* Holds

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

(32 KB) 216 * 215 = 231 = 2GB

(32 KB) 216 * 215 = 231 = 2GB The Microsoft FAT 16 file system (supported by all of Microsoft's operating systems from latter versions of MS-DOS through Windows8, as well as all Linux versions) is an example of a file allocation table

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

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

How To Resize ext3 Partitions Without Losing Data

How To Resize ext3 Partitions Without Losing Data By Falko Timme Published: 2007-01-07 17:12 How To Resize ext3 Partitions Without Losing Data Version 1.0 Author: Falko Timme Last edited 12/31/2006 This article is about

More information

Lab 1: Accessing the Linux Operating System Spring 2009

Lab 1: Accessing the Linux Operating System Spring 2009 CIS 90 Linux Lab Exercise Lab 1: Accessing the Linux Operating System Spring 2009 Lab 1: Accessing the Linux Operating System This lab takes a look at UNIX through an online experience on an Ubuntu Linux

More information

Admin. ! Assignment 3. ! due Monday at 11:59pm! one small error in 5b (fast division) that s been fixed. ! Midterm next Thursday in-class (10/1)

Admin. ! Assignment 3. ! due Monday at 11:59pm! one small error in 5b (fast division) that s been fixed. ! Midterm next Thursday in-class (10/1) Admin CS4B MACHINE David Kauchak CS 5 Fall 5! Assignment 3! due Monday at :59pm! one small error in 5b (fast division) that s been fixed! Midterm next Thursday in-class (/)! Comprehensive! Closed books,

More information

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017 ECE 550D Fundamentals of Computer Systems and Engineering Fall 2017 The Operating System (OS) Prof. John Board Duke University Slides are derived from work by Profs. Tyler Bletsch and Andrew Hilton (Duke)

More information

CSE 391 Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

CSE 391 Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors CSE 391 Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson http://www.cs.washington.edu/391/

More information

client X11 Linux workstation

client X11 Linux workstation LPIC1 LPIC Linux: System Administrator LPIC 1 LPI command line LPIC-1 Linux LPIC-1 client X11 Linux workstation Unix GNU Linux Fundamentals Unix and its Design Principles FSF and GNU GPL - General Public

More information

Question No: 1 In capacity planning exercises, which tools assist in listing and identifying processes of interest? (Choose TWO correct answers.

Question No: 1 In capacity planning exercises, which tools assist in listing and identifying processes of interest? (Choose TWO correct answers. Volume: 129 Questions Question No: 1 In capacity planning exercises, which tools assist in listing and identifying processes of interest? (Choose TWO correct answers.) A. acpid B. lsof C. pstree D. telinit

More information

Cloud Control Panel User Manual v1.1

Cloud Control Panel User Manual v1.1 Cloud Control Panel User Manual v1.1 March 2011 Page: 1 / 27 Contents 1 Introduction...3 2 Login procedure...4 3 Using the Dashboard...7 3.1 Enabling the Detailed View...8 3.2 Stopping the component...9

More information

Admin CS41B MACHINE. Midterm topics. Admin 2/11/16. Midterm next Thursday in-class (2/18) SML. recursion. math. David Kauchak CS 52 Spring 2016

Admin CS41B MACHINE. Midterm topics. Admin 2/11/16. Midterm next Thursday in-class (2/18) SML. recursion. math. David Kauchak CS 52 Spring 2016 Admin! Assignment 3! due Monday at :59pm! Academic honesty CS4B MACHINE David Kauchak CS 5 Spring 6 Admin Midterm next Thursday in-class (/8)! Comprehensive! Closed books, notes, computers, etc.! Except,

More information

Linux Howtos. Fedora 9 Install (114) CIS Fall Fedora 9 Install (114) Fedora 9 installation with custom partitions.

Linux Howtos. Fedora 9 Install (114) CIS Fall Fedora 9 Install (114) Fedora 9 installation with custom partitions. Linux Howtos Fedora 9 Install (114) CIS 191 - Fall 2008 Fedora 9 Install (114) Fedora 9 installation with custom partitions. Requirements: Fedora 9 DVD ISO files http://iso.linuxquestions.org/ VMWare Server

More information

CSE 390a Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors

CSE 390a Lecture 3. bash shell continued: processes; multi-user systems; remote login; editors CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller and Ruth Anderson http://www.cs.washington.edu/390a/

More information

Managing the Analyzer

Managing the Analyzer CHAPTER 4 This chapter, which provides information about managing the Analyzer, contains the following sections: Accessing NetFlow Data Files Explains why data stored on nonlocal file systems can be inaccessible

More information

User Commands ps ( 1 )

User Commands ps ( 1 ) NAME ps report process status SYNOPSIS ps [-aacdefjllpy] [-g grplist] [-n namelist] [-o format]... [-p proclist] [-s sidlist] [-t term] [-u uidlist] [-U uidlist] [-G gidlist] DESCRIPTION The ps command

More information

Exploring the system, investigating hardware & system resources

Exploring the system, investigating hardware & system resources Exploring the system, investigating hardware & system resources Laboratory of Genomics & Bioinformatics in Parasitology Department of Parasitology, ICB, USP Ctrl+c/Ctrl+v in the shell? Paste, in Gnome

More information

Getting Started. Logging In and Out. Adapted from Practical Unix and Programming Hunter College

Getting Started. Logging In and Out. Adapted from Practical Unix and Programming Hunter College Getting Started Logging In and Out Adapted from Practical Unix and Programming Hunter College Copyright 2006 Stewart Weiss Getting started: logging in and out Every user in UNIX has a username (also called

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

Metbox Training Outline LDM Training Metbox overview Break Metbox hands on training

Metbox Training Outline LDM Training Metbox overview Break Metbox hands on training Metbox Training Outline 1300-1430 LDM Training 1430-1500 Metbox overview 1500-1515 Break 1515-1700 Metbox hands on training Metbox Terms Metbox Hardware and software LDM Data management system GEneral

More information

Process States. Controlling processes. Process states. PID and PPID UID and EUID GID and EGID Niceness Control terminal. Runnable. Sleeping.

Process States. Controlling processes. Process states. PID and PPID UID and EUID GID and EGID Niceness Control terminal. Runnable. Sleeping. Controlling processes PID and PPID UID and EUID GID and EGID Niceness Control terminal 1 Process States Process states Runnable The process can be executed Waiting for CPU Sleeping The process is waiting

More information

Section 9: Cache, Clock Algorithm, Banker s Algorithm and Demand Paging

Section 9: Cache, Clock Algorithm, Banker s Algorithm and Demand Paging Section 9: Cache, Clock Algorithm, Banker s Algorithm and Demand Paging CS162 March 16, 2018 Contents 1 Vocabulary 2 2 Problems 3 2.1 Caching.............................................. 3 2.2 Clock Algorithm.........................................

More information

ECE 598 Advanced Operating Systems Lecture 19

ECE 598 Advanced Operating Systems Lecture 19 ECE 598 Advanced Operating Systems Lecture 19 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 7 April 2016 Homework #7 was due Announcements Homework #8 will be posted 1 Why use

More information

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System Mid Term from Feb-2005 to Nov 2012 CS604- Operating System Latest Solved from Mid term Papers Resource Person Hina 1-The problem with priority scheduling algorithm is. Deadlock Starvation (Page# 84) Aging

More information

OPERATING SYSTEMS LINUX

OPERATING SYSTEMS LINUX OPERATING SYSTEMS LINUX Božo Krstajić, PhD, University of Montenegro Podgorica bozok@cg.ac.yu Process management Linux operating systems work with processes. Basically a process consists of program code

More information

Computer Architecture Lab 1 (Starting with Linux)

Computer Architecture Lab 1 (Starting with Linux) Computer Architecture Lab 1 (Starting with Linux) Linux is a computer operating system. An operating system consists of the software that manages your computer and lets you run applications on it. The

More information

Monitoring Agent for Unix OS Version Reference IBM

Monitoring Agent for Unix OS Version Reference IBM Monitoring Agent for Unix OS Version 6.3.5 Reference IBM Monitoring Agent for Unix OS Version 6.3.5 Reference IBM Note Before using this information and the product it supports, read the information in

More information

CSE410 Operating Systems Spring 2018 Project 1: Introduction to Unix/Linux Signals

CSE410 Operating Systems Spring 2018 Project 1: Introduction to Unix/Linux Signals CSE410 Operating Systems Spring 2018 Project 1: Introduction to Unix/Linux Signals 1 Overview and Background In this exercise you will gain first hand experience with Unix/Linux signals. You will develop

More information

LOG ON TO LINUX AND LOG OFF

LOG ON TO LINUX AND LOG OFF EXPNO:1A LOG ON TO LINUX AND LOG OFF AIM: To know how to logon to Linux and logoff. PROCEDURE: Logon: To logon to the Linux system, we have to enter the correct username and password details, when asked,

More information

Basic Linux Command Line Interface Guide

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

More information

Introduction to Linux

Introduction to Linux Introduction to Operating Systems All computers that we interact with run an operating system There are several popular operating systems Operating Systems OS consists of a suite of basic software Operating

More information

First Five Minutes on a System. What to do and why

First Five Minutes on a System. What to do and why First Five Minutes on a System What to do and why Guidelines and Ideas No hard rules Started writing at 4:21pm Jan 21 Please feel free to POLITELY comment ** means a real life example with names removed

More information

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions:

Prerequisites: General computing knowledge and experience. No prior knowledge with Linux is required. Supported Distributions: This course prepares students to take the 101 exam of the LPI level 1 certification. The Linux Professional Institute (LPI) is the go to certification body for vendor independent Linux certifications.

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

1. Set up the storage to allow access to the LD(s) by the server following the NEC storage user guides.

1. Set up the storage to allow access to the LD(s) by the server following the NEC storage user guides. Overview Server running Red Hat Enterprise Linux (RHEL) must be configured to recognize and work with NEC storage systems. The following procedure demonstrates the steps necessary to configure multipath

More information

Basic UNIX system administration

Basic UNIX system administration Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright 2001-2003. System administration Thus far, we ve only discussed:

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

Installation of the OS

Installation of the OS Lab 1 Installation of the OS 1.1 Objectives The goal of this first session is to install a Debian/Linux operating system from scratch on a Intel x86- based computer. The installation will be made on a

More information

(MCQZ-CS604 Operating Systems)

(MCQZ-CS604 Operating Systems) command to resume the execution of a suspended job in the foreground fg (Page 68) bg jobs kill commands in Linux is used to copy file is cp (Page 30) mv mkdir The process id returned to the child process

More information

Why Jan 1, 1960? See:

Why Jan 1, 1960? See: 1 Why Jan 1, 1960? See: http://support.sas.com/community/newsletters/news/insider/dates.html Tony Barr was looking for a timestamp that would pre-date most electronic records that were available in the

More information

An Introduction to Unix Power Tools

An Introduction to Unix Power Tools An to Unix Power Tools Randolph Langley Department of Computer Science Florida State University August 27, 2008 History of Unix Unix Today Command line versus graphical interfaces to COP 4342, Fall History

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

Full file at https://fratstock.eu

Full file at https://fratstock.eu Guide to UNIX Using Linux Fourth Edition Chapter 2 Solutions Answers to the Chapter 2 Review Questions 1. Your company is discussing plans to migrate desktop and laptop users to Linux. One concern raised

More information

Please note that CNE 216 is a brand new course that has never been taught on the George campus; it will be taught for the first time in the fall of

Please note that CNE 216 is a brand new course that has never been taught on the George campus; it will be taught for the first time in the fall of Please note that CNE 216 is a brand new course that has never been taught on the George campus; it will be taught for the first time in the fall of 2015. The materials for this course are still being developed.

More information

Maintaining the System Software

Maintaining the System Software CHAPTER 2 This chapter covers the tasks required for maintaining a Content Engine. Upgrading the System Software, page 2-1 Recovering the System Software, page 2-2 Maintaining the Hard Disk Storage, page

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

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

OS In Action. Linux. /proc

OS In Action. Linux. /proc OS In Action Linux /proc Text taken from: http://www.tldp.org/ldp/linux-filesystem-hierar chy/html/proc.html Small additions and formatting by Dr.Enis KARAARSLAN, 2015 /proc is very special in that it

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

Linux Kung-Fu. James Droste UBNetDef Fall 2016

Linux Kung-Fu. James Droste UBNetDef Fall 2016 Linux Kung-Fu James Droste UBNetDef Fall 2016 $ init 1 GO TO https://apps.ubnetdef.org GO TO https://apps.ubnetdef.org GO TO https://apps.ubnetdef.org GO TO https://apps.ubnetdef.org GO TO https://apps.ubnetdef.org

More information

CPSC 457 OPERATING SYSTEMS MIDTERM EXAM

CPSC 457 OPERATING SYSTEMS MIDTERM EXAM CPSC 457 OPERATING SYSTEMS MIDTERM EXAM Department of Computer Science University of Calgary Professor: Carey Williamson March 9, 2010 This is a CLOSED BOOK exam. Textbooks, notes, laptops, calculators,

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR 2011-2012 / ODD SEMESTER Question Bank Subject Code/Name: CS1005-Unix Internals Year / Sem: IV / VII UNIT I- GENERAL

More information

unix intro Documentation

unix intro Documentation unix intro Documentation Release 1 Scott Wales February 21, 2013 CONTENTS 1 Logging On 2 1.1 Users & Groups............................................. 2 1.2 Getting Help...............................................

More information

File system links. Week Overview. Hard and symbolic links Process management

File system links. Week Overview. Hard and symbolic links Process management ULI101 Week 08 File system links Week Overview Hard and symbolic links Process management What is a file system Link? A link is a pointer to a file. This pointer associates a file name with a number called

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

G54ADM Sample Exam Questions and Answers

G54ADM Sample Exam Questions and Answers G54ADM Sample Exam Questions and Answers Question 1 Compulsory Question (34 marks) (a) i. Explain the purpose of the UNIX password file. (2 marks) ii. Why doesn t the password file contain passwords? (2

More information

Troubleshooting Memory

Troubleshooting Memory This chapter contains the following sections: About, page 1 General/High Level Assessment of Platform Memory Utilization, page 2 Detailed Assessment of Platform Memory Utilization, page 2 User Processes,

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

Lab manual for Subject: System Programming. Class : sixth semester(cse)

Lab manual for Subject: System Programming. Class : sixth semester(cse) Lab manual for Subject: System Programming Class : sixth semester(cse) List of Practical. 1) Write a Program to create,read, and write into a file having record of students. 2) a) Write a program to generate

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

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

ECE 598 Advanced Operating Systems Lecture 22

ECE 598 Advanced Operating Systems Lecture 22 ECE 598 Advanced Operating Systems Lecture 22 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 19 April 2016 Announcements Project update HW#9 posted, a bit late Midterm next Thursday

More information

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission Filesystem Disclaimer: some slides are adopted from book authors slides with permission 1 Recap Directory A special file contains (inode, filename) mappings Caching Directory cache Accelerate to find inode

More information

Basic Linux Command Line Interface Guide

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

More information

Utilities. Introduction. Working with SCE Platform Files. Working with Directories CHAPTER

Utilities. Introduction. Working with SCE Platform Files. Working with Directories CHAPTER CHAPTER 4 Revised: September 27, 2012, Introduction This chapter describes the following utilities: Working with SCE Platform Files, page 4-1 The User Log, page 4-5 Managing Syslog, page 4-8 Flow Capture,

More information

GNU CPIO September by Robert Carleton and Sergey Poznyakoff

GNU CPIO September by Robert Carleton and Sergey Poznyakoff GNU CPIO 2.12 12 September 2015 by Robert Carleton and Sergey Poznyakoff This manual documents GNU cpio (version 2.12, 12 September 2015). Copyright c 1995, 2001-2002, 2004, 2010, 2014-2015 Free Software

More information

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI 621 105 DEPARTMENT OF COMPUTER SCIENCE AND ENGG. Cs 1005- UNIX INTERNALS UNIT

More information

Introduction to Supercomputing

Introduction to Supercomputing Introduction to Supercomputing TMA4280 Introduction to UNIX environment and tools 0.1 Getting started with the environment and the bash shell interpreter Desktop computers are usually operated from a graphical

More information

Linux & Shell Programming 2014

Linux & Shell Programming 2014 Unit -1: Introduction to UNIX/LINUX Operating System Practical Practice Questions: Find errors (if any) otherwise write output or interpretation of following commands. (Consider default shell is bash shell.)

More information

Physical and Logical structure. Thursday, December 02, 2004

Physical and Logical structure. Thursday, December 02, 2004 Logical_and_physical Page 1 Physical and Logical structure Thursday, December 02, 2004 2:32 PM Logical and Physical structure Physical structure of a disk: tracks, sectors, cylinders. Logical structure

More information

CST8177 Linux II. Linux Boot Process

CST8177 Linux II. Linux Boot Process CST8177 Linux II Linux Boot Process Reference information from the text, http://www.linuxdoc.org and several other web sites Linux Boot Process Topics covered in this slide-set Basic definition of the

More information

The kernel is the low-level software that manages hardware, multitasks programs, etc.

The kernel is the low-level software that manages hardware, multitasks programs, etc. November 2011 1 Why Use Linux? Save Money Initial purchase and maintenance Resume Linux is used by MANY organizations More choices Tons of Linux operating systems November 2011 2 What is Linux? 1. Contains

More information

Linux Installation. Prepared by: William Zereneh

Linux Installation. Prepared by: William Zereneh Linux Installation Prepared by: William Zereneh zereneh@scs.ryerson.ca Introduction 1. System Installation and Customization 2. System Maintenance 3. System Performance and Monitoring 1.Installation and

More information

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

More Raspian. An editor Configuration files Shell scripts Shell variables System admin More Raspian An editor Configuration files Shell scripts Shell variables System admin Nano, a simple editor Nano does not require the mouse. You must use your keyboard to move around the file and make

More information

cron How-To How to use cron to Schedule rsync Synchronizations September 29, 2004

cron How-To How to use cron to Schedule rsync Synchronizations September 29, 2004 cron How-To How to use cron to Schedule rsync Synchronizations September 29, 2004 615-0006-01 2004 Net Integration Technologies Inc. All company and product names are registered trademarks off their respective

More information

The cluster system. Introduction 22th February Jan Saalbach Scientific Computing Group

The cluster system. Introduction 22th February Jan Saalbach Scientific Computing Group The cluster system Introduction 22th February 2018 Jan Saalbach Scientific Computing Group cluster-help@luis.uni-hannover.de Contents 1 General information about the compute cluster 2 Available computing

More information

How much memory users uses in GNU / Linux and FreeBSD - Commands and Scripts to find user memory usage on Linux

How much memory users uses in GNU / Linux and FreeBSD - Commands and Scripts to find user memory usage on Linux How much memory users uses in GNU / Linux and FreeBSD - Commands and Scripts to find user memory usage on Linux Author : admin If you have to administrate a heterogenous network with Linux and FreeBSD

More information

UNIX System Administration

UNIX System Administration $!... 14:13 $$... 14:13.netrc...12:27-28 /etc/fstab... 6:25 /etc/hosts.equiv... 8:23 /etc/inittab Entries... 4:8 /etc/netmasks... 8:22 /etc/shells... 12:25 /home... 6:69 /tmp...6:61-67 /usr... 6:70 /var...

More information

EKT332 COMPUTER NETWORK

EKT332 COMPUTER NETWORK EKT332 COMPUTER NETWORK LAB 1 INTRODUCTION TO GNU/LINUX OS Lab #1 : Introduction to GNU/Linux OS Objectives 1. Introduction to Linux File System (Red Hat Distribution). 2. Introduction to various packages

More information

Chapter 1 - Introduction. September 8, 2016

Chapter 1 - Introduction. September 8, 2016 Chapter 1 - Introduction September 8, 2016 Introduction Overview of Linux/Unix Shells Commands: built-in, aliases, program invocations, alternation and iteration Finding more information: man, info Help

More information

SNMP MIBs and Traps Supported

SNMP MIBs and Traps Supported This section describes the MIBs available on your system. When you access your MIB data you will expose additional MIBs not listed in this section. The additional MIBs you expose through the process are

More information

Session 1: Accessing MUGrid and Command Line Basics

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

More information