Linux File System Commands

Slides:



Advertisements
Similar presentations
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
Linux & Applications Sean GavinWayne State University multi-user environment -- log in: user name and password -- you never turn the computer on or off.
Linux Files. Files and directories As in Windows directories are structures which contain –Other directories –Files.
UNIX Command-line Introduction Terence Parr. Navigating  cd  pwd  ls  pushd/pod  cd  pwd  ls  pushd/pod.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Looks like DOS…but more powerful.
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
GETTING STARTED USING LINUX UBUNTU FOR A MULTI-USER SYSTEM Team 4 Lab Coordinator Manager Presentation Prep Webmaster Document Prep Faculty Facilitator.
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.
1 Unix Text Editors Creating files on the Unix system.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
The UNIX development environment CS 400/600 – Data Structures.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
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/
Tera Term Brian Smith Chris Vasse Zaheemat Adetoro William Newton Tom Presgraves.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
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.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
This is my contact No and this number search with google and watch my videos m
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
Introduction to Unix for FreeSurfer Users
Delete an Operating System From Single-Boot HP Computer.
First Day in Lab Making a C++ program
A Basic Introduction to the Linux Commandline
Getting started with CentOS Linux
Command Line Basics.
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.
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Prepared by: Eng. Maryam Adel Abdel-Hady
Andy Wang Object Oriented Programming in C++ COP 3330
3.4 User Interfaces This tutorial will give you a first-hand experience of: Navigating the directory structure in a CLI and an unfamiliar GUI Running the.
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Eric Shook Department of Geography Kent State University
Raspberry Pi in Headless Operation
CSE 374 Programming Concepts & Tools
Intro to UNIX System and Homework 1
The Linux Command Line Chapter 12
The Linux Command Line Chapter 2
Lab 00 Discussion Linux Basics
Operating Systems and Using Linux
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Operating Systems and Using Linux
Operating Systems and Using Linux
Using emacs and G++ at U. W.
Operating Systems and Using Linux
Scripts In Matlab.
Module 6 Working with Files and Directories
What is Unix? A multi-user networked operating system
Lab 2: Terminal Basics.
Copyright (c) 2017 by Dr. E. Horvath
The Linux Command Line Chapter 12
Presentation transcript:

Linux File System Commands Navigating the File System ls - list the files in the current directory File and directory names are case sensitive cd /home/pi/Robot - cd change directory to the Robot directory; the absolute path starts at the root cd Desktop - cd change directory to the Desktop; this relative path starts at the current directory Copyright (c) 2017 by Dr. E. Horvath

Copyright (c) 2017 by Dr. E. Horvath File Operations Copy a file to a directory cp filename.py directoryname Copy a file to a new file cp filename.py newfilename.py Make a backup copy of your files to a USB Flash Drive; replace D786-BE1B with the identifier for your USB Flash Drive cp filename.py /media/pi/D786-BE1B When done, click on the upper right hand corner to safely eject the USB Flash Drive Copyright (c) 2017 by Dr. E. Horvath

Copyright (c) 2017 by Dr. E. Horvath File Operations Rename a file mv filename.py newfilename.py Move a file to a directory mv filename.py directoryname Copyright (c) 2017 by Dr. E. Horvath

Using the nano Text Editor Editing files with nano nano filename.py nano robot_move.py # Make changes to the file; navigate with # the arrow keys Ctrl+O # Control plus O to write out Hit the Enter Key # Accept the changes Ctrl+X # Control plus X to exit Copyright (c) 2017 by Dr. E. Horvath

Running Python in the command prompt Type python3 to execute a Python file python3 filename.py Example: python3 robot_move.py Copyright (c) 2017 by Dr. E. Horvath

Copyright (c) 2017 by Dr. E. Horvath Finding Files Searching for files with a specific name. The * are wildcards. This example shows a search for any Python files which have robot in the file name. Search the home directory find ~ -name *robot*.py Search the USB Flash Drive; replace D786-BE1B with the identifier for your USB Flash Drive find /media/pi/D786-BE1B -name *robot*.py Copyright (c) 2017 by Dr. E. Horvath