Linux Basic TA for ITIS3100: Xu Fei 2008-01.

Slides:



Advertisements
Similar presentations
Tony Kombol.  A program that  receives commands from a text input device (e.g. keyboard)  passes them to the operating system to perform  In the.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Introduction to UNIX CSE 2031 Fall May 2015.
1 Introduction to UNIX Ke Liu
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
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.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
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.
LINUX COMMAND LINE INTERFACE Lab 3 EECS 448 Dr Fengjun Li and Meenakshi Mishra.
Introduction to Linux and Shell Scripting Jacob Chan.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
Linux Commands LINUX COMMANDS.
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.
Linux Installation and Administration Lesson 2 Tutor: George Papamarkos.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Introduction to Linux Mukesh Pund Scientist, NISCAIR, New Delhi, India.
2INC0 Operating Systems Introduction to Linux
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
November 5, 2015CIS 118 Intro to UNIX What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions.
Chapter Four I/O Redirection1 System Programming Shell Operators.
Introduction to Programming Using C An Introduction to Operating Systems.
Basic of UNIX For fresh members of SPARCS
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
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.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Linux Commands C151 Multi-User Operating Systems.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
Tony Kombol.  man  on-line user manual  man command_you_want_info_on  type q to exit  examples:  for ls (list directory) ▪ man ls  for cp (copy)
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.
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.
By, V.Gouthaman. Introduction Linux is a multitasking, multiuser operating system, which means that many people can run many different applications on.
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).
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.
Learning Unix/Linux Based on slides from: Eric Bishop.
Using Linux Kaya Oğuz Room: 310.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Chapter 11 Command-Line Master Class
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Some Linux Commands.
C151 Multi-User Operating Systems
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Command Line Interface for Beginners
CSE 374 Programming Concepts & Tools
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.
Unix : Introduction and Commands
Tutorial of Unix Command & shell scriptS 5027
UNIX Reference Sheets CSE 2031 Fall 2010.
Linux Shell Script Programming
CSE 303 Concepts and Tools for Software Development
Linux Commands LINUX COMMANDS.
Presentation transcript:

Linux Basic TA for ITIS3100: Xu Fei

Agenda Linux Basic  What is Linux  Linux Kernel  Linux Family Map  Linux distribution Example  User Interfaces: GUI and CLI Linux Commands Basic  Linux File System  Directory Relationship  File Permission  Usage of ls; cat/less/more; cp; mv; rm; mkdir; chmod; su; ps; kill; man

What is Linux? Linux is a Unix-like computer operating system.  free and open source Linux is now packaged for different uses in Linux distributions Linus TorvaldsLinus Torvalds, creator of the Linux kernelLinux kernel

Kernel In computer science, the kernel is the central component of most computer operating systems (OS). operating systems

Family Map

Linux distribution Example

User interfaces Graphical user interfaces (GUI) accept input via devices such as computer keyboard and mouse and provide articulated graphical output on the computer monitor.Graphical user interfacesgraphical computer monitor Command line interfaces, where the user provides the input by typing a command string with the computer keyboard and the system provides output by printing text on the computer monitor.Command line interfaces command string

GUI in Linux Today, GNOME and KDE are the dominant solutions, and often installed by default on Linux systems.GNOMEKDE

Debian Screenshot

CLI in Linux

Agenda Linux Basic  What is Linux  Linux Kernel  Linux Family Map  Linux distribution Example  User Interfaces: GUI and CLI Linux Commands Basic  Linux File System  Directory Relationship  File Permission  Usage of ls; cat/less/more; cp; mv; rm; mkdir; chmod; su; ps; kill; man

Common Linux Command line File and file system management aliasalias · cat · chattr · cd · chmod · chown · chgrp · cksum · cmp · cp · du · df · file · fsck · fuser · ln · ls · · lsof · mkdir · mount · mv · pwd · rm · rmdir · split · touchcatchattrcdchmodchownchgrpcksum cmpcpdudffilefsckfuserlnlslsof mkdirmountmvpwdrmrmdirsplittouch Process management atat · chroot · crontab · exit · kill · killall · nice · pgrep · pidof · pkill · ps · pstree · sleep · time · top · wait · watchchrootcrontabexitkillkillallnicepgreppidof pkillpspstreesleeptimetopwaitwatch User management/ environment envenv · finger · id · logname · mesg · passwd · su · sudo · uname · uptime · w · wall · who · whoami · writefingeridlognamemesgpasswdsudo unameuptimewwallwhowhoamiwrite Text processing awkawk · comm · cut · ed · ex · fmt · head · iconv · join · less · more · paste · sed · sort · tac · tail · tr · uniq · wc · xargscommcutedexfmtheadiconvjoinless morepastesedsorttactailtruniqwcxargs Shell Shell programming basenamebasename · echo · expr · false · printf · test · true · unsetechoexprfalseprintftesttrueunset Printing: lp · Communications: inetd · netstat · ping · rlogin · nc · traceroute · Searching: find · grep · strings · Miscellaneous: banner · bc · cal · dd · man · size · yeslpinetdnetstatpingrloginnc traceroutefindgrepstringsbannerbccalddmansizeyes Alphabetical Directory of Linux Commands

You're not logged in as root, are you? Don't operate the computer as the root. You should only become the root when absolutely necessary. Create a user account for yourself now!

File System Tree View

Directory Relationship Home Directory Root Directory Parent Directory Working Directory (Current Directory)

File Permission

Explanation r = read w = write x = execute u = the owner user g = the owner group o = others (neither u, nor g) chmod to change permission

File types

ls Command Result ls List the files in the working directory ls /binList the files in the /bin directory (or any other directory you care to specify) ls -lList the files in the working directory in long format ls -l /etc /binList the files in the /bin directory and the /etc directory in long format ls -la..List all files (even ones with names beginning with a period character, which are normally hidden) in the parent of the working directory in long format

cat / less / more cat testfile less testfile more testfile What is the difference?

cp

mv

rm

mkdir The mkdir command is used to create directories. To use it, you simply type:  mkdir directory

chmod Here's how it works:  rwx rwx rwx =  rw- rw- rw- =  rwx = and so on...  rwx = 111 in binary = 7  rw- = 110 in binary = 6  r-x = 101 in binary = 5  r-- = 100 in binary = 4 chmod 600 testfile

su (substitute user) su password: debian:/home/user# exit su - password: debian:~# exit debian:~# su user What is the difference between “su” and “su –”

ps ps displays the currently running processes. Try:  ps -aux

kill kill is a command used to send simple messages to processes running on the system. By default, the message sent is the "termination" signal, which requests that the process exit. kill PID In computing, the process identifier (normally referred to as the process ID or just PID) is a number used by some operating system kernels to uniquely identify a process. Use ps to get the PID

Man (Manual page) One of the easiest ways to find out how to use many commands and some applications is through the man command.  man command-name If you are new to Linux, you might not find man pages as useful as someone who is more accustomed to their terse delivery of information. But man pages can provide information on how to use commands on your system. Even at this point, you can gain insight into your system by familiarizing yourself with the man pages. You will certainly want to know how to use them eventually. Try xman at the shell prompt, man pages in a graphical presentation.

Screenshot for “man man”

Screenshot for “man ls”