Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
When you log into unix you are in the root directory Root directory To create a new directory you must type: mkdir newdirectory This will create a new.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Linux Files. Files and directories As in Windows directories are structures which contain –Other directories –Files.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
UNIX By Darcy Tatlock. 1. Successful Log Into Unix To actively manipulate your website you need to be logged in. Without being logged in you cannot enter.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Learning basic Unix command IT 325 operating system.
Using the “CLI” Unix / Linux Preparation Course May 25 Djibouti.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface (or Terminal) What is the filesystem tree.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Nick Geoghegan1 Introduction to Linux Workshop. Nick Geoghegan2 Getting Started Download the following files:
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
Unix Command Project Justin Rogers for LS 560 Spring 2015.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Command Line Unix for Information Professionals In web administration or information management work, I may be called upon, as an Information Professional,
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
ICT Foundation 1 Copyright © 2010, IT Gatekeeper Project – Ohiwa Lab. All rights reserved. File and Directory.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
1 Day 5 Additional Unix Commands. 2 Important vs. Not Often in Unix there are multiple ways to do something. –In this class, we will learn the important.
CPSC 217 T03 Week I Part #1: Unix and HELLO WORLD Hubert (Sathaporn) Hu.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX Commands cal – will print a calendar.
Using Commands Unix / Linux Preparation Course May 6, 2012 Serrekunda, The Gambia.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Introduction to Programming Using C An Introduction to Operating Systems.
Using the “CLI” Unix / Linux Preparation Course June 9, 2013 Lusaka, Zambia.
2 Manual & Filestore Mauro Jaskelioff. Introduction Using the manual The UNIX filestore File permissions.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
More Unix Naomi Altman. Directories Directory = folder mkdir - makes a new directory rmdir - removes an empty directory cd mydirectory - moves you into.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
The Unix File sytem. Introduction Tree structure …
Learning basic Unix command It 325 operating system.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
Login Being logged into a command line prompt allows a user to easily and simply execute multiple commands (one-by-one or at the same time) that would.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Department of Computer Engineering
Login The Login prompt provides access to the files located on the server.
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
UNIX The Basics Source:
Unix Commands PowerPoint
Some Linux Commands.
Operating Systems and Using Linux
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort ©2014

1 – Login or ssh Being logged in to the server through a shell allows you to see what is happening on a deeper level than you can with a GUI. You have more control than you typically do with a graphical interface.

2 – List Folders or ls command The ls command lists all the files and directories in the directory you are currently in. This is important because computers use a hierarchal directory structure to organize files.

3 – Change Directory or cd command The cd command lets you change directories from one into another. It is important because without it you would be stuck in the root directory and not be able to do anything in other directories.

4 – Move Back or cd.. command The cd.. command lets you back up one level in the directory. Useful for moving around, especially if you have worked your way down in directories and do not need to go back to the beginning.

4a – Return Home or cd ~ command The cd ~ command takes you back to the beginning directory. To illustrate this, I created several levels of test directories. This lets you go back to the start without having to back up one step at a time.

4b – Return Home or cd command However, the class video showed a cd command (no ~) that when tested, looked like it worked the same as the cd ~ command, taking me back to my home directory, illustrated above.

5 – Make New Directory or mkdir command The mkdir insertnewnamehere command lets you make a new directory. Useful because you may need a new directory in which to place new files that do not fit into other established directories.

6 – Change Directory or cd command The cd command can be used to move into other directories, such as the newly created directory. Extremely useful as you will probably want to accomplish something within the new directory.

7 – Display Last or history command The history command shows you the last several commands you've entered. Extremely useful in going back to see how you may have gotten yourself to where you currently are.

8 – Date command The date command will display the current date, time and year. This could potentially become important if the timing on your computer is off; the date command would show you.

9 – Users Logged In or who command The who command tells you who else is currently logged into the server and their login location. If others had write privileges to the same files, it may be useful to see if any of them might be trying to make alterations as well. *Note that here, I am one of 6 users logged into the server. (For some reason, it is showing me twice...)

10 – Calendar or cal command The cal command will display the current month's calendar. Again, this could be useful if your computer (or you) have lost track of time.

11 – rmdir command versus rm -r command My husband advised me to use the rm -r command in order to delete the directory I created in slide 5. (I will illustrate why in the next slide.) Removing a directory can be useful if it is no longer needed.

11a – rmdir command versus rm -r command The difference between the rmdir and rm -r commands is that the rmdir command will only delete a directory that is empty. If you need to delete all the contents as well as the directory, you should use the rm -r command.

12 – Long List or ls -l command The ls -l command will show you a more detailed list of the files found in a directory, such as permissions, date created, and file size. Important for determining what you or others may or may not do with a file.

13 – Directory Permissions From the same slide, note the letters d, r, w, x, and symbol - to the left of the long listing of directories/files. These symbols (called symbolic notation) tell you what you may and may not do (or what rights/permissions you have).

13a – Directory Permissions The letter d stands for directory and is sort of the exception in our permissions because it does not represent any permission granted or denied, but rather the fact that the item listed is a directory rather than a file. If it were a file, you would see a -. It is always the first character.

13b – Directory Permissions The letter r stands for read and appears if reading is permitted. The letter w stands for write and appears if writing is permitted.

13c – Directory Permissions The letter x stands for execute and appears when execution is permitted. The character - appears when no right for a certain attribute is permitted.

13d – Directory Permissions Note the groupings and positions of the letters and - symbol as well. The first set of 3 characters after the initial slot denotes the user class, most likely the account owner.

13e – Directory Permissions The second set of 3 slots is reserved for the group class rights. The third set of 3 characters displays permissions granted to others. This is anyone and everyone with any kind of access.

14 – Globally Search a Regular Expression & Print or grep command The grep command will search out and list (or “print”) on the screen. Here, I searched for !-- on the index file of my website. This can be extremely useful when looking for something, but you are not quite sure of its location.

15 – Log Out or exit command The exit command will log you out of the system. This is best practice and common courtesy. Also, it keeps others from inferring you are working with the system when in fact you are not.

16 – Processes or ps command and ps aux command The ps aux command shows all the processes running on your machine, while the ps command will only show the processes running in your terminal window. Note the end of the ps aux list above followed by the short ps list.

17 – Display a Plain Text File or more command The more +filename command will display that file in your terminal window. This only works for plain text files, however, and if the file is too large to show in its entirety, as above, you can use the space-bar to page down through it.

17a – Display a Plain Text File or more command The problem with the more command is that once you have reached the end of the file, there is no way to get back to the top again. It is still useful to be able to look inside a file. However, there is another way...

18 – Display a Plain Text File with the less command With the less +filename command, a plain text file will still display in your terminal window, but here, you are able to scroll down or up with the arrow keys. I am told this is why...

less is more

Why is Mastery of the Command Line in Unix Important for Information Professionals? The GUI is user-friendly and easy to use, but what if the user is unable to find the information they seek because the GUI programmers did not anticipate such a need from the user? Information Professionals need to be able to “look under the hood” of the GUI in order to determine where the breakdown in need is arising and to help solve the problem.

Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort ©2014