It's a binary file kept under specific directory.

Slides:



Advertisements
Similar presentations
I/O & Perintah Dasar Linux Onno W. Purbo
Advertisements

Introduction to Linux command line for bioinformatics Wenjun Kang, MS Jorge Andrade, PhD 6/28/2013 Bioinformatics Core, Center.
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Linux Workshop Session 1 Khadka, Santosh and Panthi, Sanjeeb Computer Science Department Lamar Univers Lamar Univers ity.
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.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
Chapter 7 Advanced Directory and File Management.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
UNIX Command-line Introduction Terence Parr. Navigating  cd  pwd  ls  pushd/pod  cd  pwd  ls  pushd/pod.
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.
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
Dedan Githae, BecA-ILRI Hub Introduction to Linux / UNIX OS MARI eBioKit Workshop; Nov , 2014.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
The UNIX development environment CS 400/600 – Data Structures.
Working with Linux Lab 1 1. Login and logout Account – username & password – Note: Linux is case-sensitive Administrator: username = root Logout: exit,
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
Module 6 – Redirections, Pipes and Power Tools.. STDin 0 STDout 1 STDerr 2 Redirections.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Text Editing February 2 nd, 2004 Class Meeting 3.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
40 Years and Still Rocking the Terminal!
Basic of UNIX For fresh members of SPARCS
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Linux Commands C151 Multi-User Operating Systems.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Apr. 25, Grid Computing Hands On Training for Users Faculty of Sciences, University.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
+ Introduction to Unix Joey Azofeifa Dowell Lab Short Read Class Day 2 (Slides inspired by David Knox)
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Linux Workshop Session 2 By Amol and Prem. Overview of Presentation Brief Review Useful tools Remote Access Troubleshooting.
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.
Tutorial of Unix Command & shell scriptS 5027
Quality Thought Technologies
CS306 Lab Workout 2 Fall 2017.
Getting started with CentOS Linux
Linux Commands Workout 1
INTRODUCTION TO LINUX OPERATING SYSTEM
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
C151 Multi-User Operating Systems
Introduction to Linux Dr Karina Kubiak - Ossowska
Command Line Interface for Beginners
Shell Script Assignment 1.
Introduction to GNU/Linux (Fedora) Command Line Interface
Linux Basic Commands Visit to more Learning Resources.
Tutorial of Unix Command & shell scriptS 5027
Basic UNIX OLC Training.
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux Week 0 - Thursday.
CS 60 Discussion Review.
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Working with Mac OS and Linux
Be comfortable with Linux
Presentation transcript:

It's a binary file kept under specific directory. Frequently Used Linux Commands What's a command? It's a binary file kept under specific directory. 1

esc key to switch between modes. mostly used commands: vi filename.c vi editor modes in vi editor Command insert esc key to switch between modes. mostly used commands: vi filename.c :x :q! shift+a - append 2

File handling commands Manipulating Files: chmod cp file mv rm head tail cat 3

Standard Input Device-0 Standard Output Device-1 Background Process & Some Operators : Standard Input Device-0 Standard Output Device-1 Standard Error Device-2 Redirect : ----------- > Input < Output | Pipe ex: ls -l 1>allfile & 4

$ls > dir_listing.txt $cat < file.sh append: Ex: $ls | more $ls > dir_listing.txt $cat < file.sh append: $ ls >> dir_listing.txt The following adds the contents of File1 at the end of File2: $ cat File1 >> File2 5

Directory Related Commands: cd mkdir pwd ls Process Related Commands: ps top netstat pstree kill 6

Disk related commands: du - Summarize disk usage of each FILE, recursively for directories. df - report filesystem disk space usage 7

Searching Files using command: find /search/path -name filename find / -name file.c 8

Search for a word in File(s) grep text /some/path/file ex: grep main hello.c grep -r main /some/cdir 9

find with exec – powerful combintion # mv files older then 1 day to dir TMP find . -atime +1 -type f -exec mv {} TMP \; # find files with word main find . -exec grep -il "main" {} \; 10

super user commands : su and su - fdisk sudo 11

Remote machine commands: To copy a file from remote machine to your system: scp oss@10.176.34.171:/home/oss/small.txt . To copy file from your machine to remote: scp Newsmall.txt oss@10.232.13.99:/home/oss To remote login: ssh 10.232.13.99 ssh oss@10.232.13.99 12

sed 's/texttofind/replacewiththis/g' filename sed – stream editor sed 's/texttofind/replacewiththis/g' filename #replace linux as GNULinux and save result in file1.txt sed 's/linux/GNULinux/g' file.txt > file1.txt du and df cmds: du -h df -h cut & paste: cut -f 2 temp2 13

Online Terminal - http://www.webminal.org Commands : Online Terminal - http://www.webminal.org http://ss64.com/bash/index.html http://www.wagoneers.com/UNIX/ Basics: http://linux.about.com/od/itl_guide/a/gdeitl_idx.htm http://www.ee.surrey.ac.uk/Teaching/Unix/index.html Tips: http://www.builderau.com.au/program/linux/soa/10-shortcuts-to-master-bash/0,339028299,339279043,00.htm http://www.wagoneers.com/UNIX/FIND/find-usage.html 14

? 15