Eric Shook Department of Geography Kent State University

Slides:



Advertisements
Similar presentations
CSE1222: Unix IntroThe Ohio State University1. Common Directory Commands  lsList directory contents  cd {dir}Change working directory to {dir}  pwdPrint.
Advertisements

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.
Exploring the UNIX File System and File Security
Linux Files. Files and directories As in Windows directories are structures which contain –Other directories –Files.
Unix Basics. Systems Programming: Unix Basics 2 Unix Basics  Unix directories  Important Unix file commands  File and Directory Access Rights through.
UNIX Command-line Introduction Terence Parr. Navigating  cd  pwd  ls  pushd/pod  cd  pwd  ls  pushd/pod.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Learning basic Unix command IT 325 operating system.
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
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.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
CHAPTER 1 UNIX FOR NONPROGRAMMERS By U ğ ur Halıcı.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
The UNIX development environment CS 400/600 – Data Structures.
Vim Editor and Unix Command gcc compiler Computer Networks.
Chapter Two Exploring the UNIX File System and File Security.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Linux Essentials Programming and Data Structures Lab M Tech CS – I 2014 Arijit Bishnu Ansuman Banerjee Debapriyo Majumdar.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Lecture One. Objective: Provide description of the Command-Line Editor of Linux operating system. Enable students to understand the practical side of.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Intro to UNIX Presented by: Student Ambassadors: Lauren Lewis Martin Sung.
The Genome Analysis Centre Building Excellence in Genomics and Computational Bioscience.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Unix Lab Fall Shell Scripting ●Through the shell (LXTerminal) you can: ●Run programs. ●Interact with the file system. ●Change settings. ●Send/receive.
1 Linux Commands. 2 Path You specify a file or directory by its path name:  the full, or absolute, path name or the one relative to a location. The full.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Introduction to Unix for FreeSurfer Users
ENEE150 Discussion 01 Section 0101 Adam Wang.
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.
A Basic Introduction to the Linux Commandline
Getting started with CentOS Linux
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.
Viewing and Changing the Filing System
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
CS314 – Section 5 Recitation 1
UNIX Basics Internet Technology.
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
The Linux Command Line Chapter 2
Exploring the UNIX File System and File Security
Introduction to Linux Week 0 - Thursday.
Operating Systems and Using Linux
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Operating Systems Lecture 5.
The Unix File System.
Getting started with CentOS Linux
Tutorial Unix Command & Makefile CIS 5027
Command line.
Module 6 Working with Files and Directories
Operating Systems and Using Linux
Lab 2: Terminal Basics.
Linux File System Commands
Presentation transcript:

Eric Shook Department of Geography Kent State University Basic Commands Eric Shook Department of Geography Kent State University

Commands – Changing and making directories cd directoryname Change the current working directory to 'directoryname' (Note: this is relative to the current working directory) cd /home/eshook/directoryname Change the current working directory to /home/eshook/directoryname mkdir directoryname Make a new directory in the current working directory named 'directoryname' mkdir /home/eshook/directoryname Make a new directory in /home/eshook named 'directoryname' pwd Print the current working directory to the command-line (e.g., /home/eshook/directoryname)

Commands – Home directory cd ~ Change the current working directory to your home directory, which will be /home/<username> mkdir ~/assignments Make a new directory in your home directory named 'assignments', which will be /home/<username>/assignments

Commands – Navigating directories .. Parent directory . Current working directory / Root ../adifferentdirectory Sister directory ../.. Grandparent directory ./adifferentdirectory/anotherdirectory/../..

Commands – Listing files and directories ls List contents of current working directory ls -a List all contents (including hidden files denoted with a .<something>) of current working directory ls directoryname List all contents in the directory named 'directoryname' (Note: This is relative to the current working directory ls .. List all contents of the parent directory (Note: This is relative to the current working directory ls /home/eshook List all contents of /home/eshook (Note: This is absolute and not relative to the working directory)

Commands – Copying files cp originalfile newfile Copy the file 'originalfile' in the current working directory to 'newfile' in the current working directory. Two copies of the files remain. cp /home/eshook/originalfile newfile Copy the file located in /home/eshook to newfile in the current working directory cp ~/originalfile newfile Copy the file located in my home directory to newfile in the current working directory

Commands – Moving files mv originalfile newfile Move the file 'originalfile' in the current working directory to 'newfile' in the current working directory. Only one copy of the file remains. mv originalfile directoryname/originalfile Move the file 'originalfile' in the current working directory to the directory named 'directoryname' mv originalfile ../anotherdirectory/originalfile Move the file 'originalfile' in the current working directory to a sister directory

Commands - Removing files and directories rm filename.txt Delete (remove) the file named 'filename.txt' in the current working directory rm directoryname/filename.txt Remove the file in 'directoryname' named 'filename.txt' rmdir directoryname Remove the directory named 'directoryname' in the current working directory rmdir /home/eshook/directoryname Remove the directory named 'directoryname' in the directory /home/eshook

Commands - Removing files and directories WARNING! WARNING WARNING! There is no recycling can or 'unrm' or 'undelete' BE CAREFUL OR YOU CAN DELETE YOUR HOMEWORK OR PROJECT! rm filename.txt Delete (remove) the file named 'filename.txt' in the current working directory rm directoryname/filename.txt Remove the file in 'directoryname' named 'filename.txt' rmdir directoryname Remove the directory named 'directoryname' in the current working directory rmdir /home/eshook/directoryname Remove the directory named 'directoryname' in the directory /home/eshook

Commands – saving time <Tab> will autocomplete a command or filename <Tab><Tab> will list the set of commands or filenames if multiple choices are available <Up> the up arrow can be used to iterate over previous commands you have typed history – the history command will list the most recent commands you have typed (over a thousand)