Linux 101 Training Module Linux Basics.

Slides:



Advertisements
Similar presentations
A Guide to Unix Using Linux Fourth Edition
Advertisements

NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Exploring the UNIX File System and File Security
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
Guide To UNIX Using Linux Third Edition
Linux Commands LINUX COMMANDS.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Learning basic Unix command IT 325 operating system.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
Guide To UNIX Using Linux Fourth Edition
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Manage Directories and Files in Linux
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.
Unix Basics Chapter 4.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
Chapter Two Exploring the UNIX File System and File Security.
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.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Chapter Two Exploring the UNIX File System and File Security.
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:
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
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.
A gentle introduction to LINUX at the command prompt.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
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.
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.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Getting Started with Linux
1.1.2 OneOs Downloading Software Upgrade
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
Getting started with CentOS Linux
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
UBUNTU INSTALLATION
Andy Wang Object Oriented Programming in C++ COP 3330
Linux file system "On a UNIX system, everything is a file;
Some Linux Commands.
C151 Multi-User Operating Systems
CS314 – Section 5 Recitation 1
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
Tutorial of Unix Command & shell scriptS 5027
Using Linux Commands Lab 3.
Exploring the UNIX File System and File Security
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Chapter 7 File and file System structure
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Linux Commands LINUX COMMANDS.
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Presentation transcript:

Linux 101 Training Module Linux Basics

This presentation will cover the following topics in Linux OS User and groups Logging into File System Commands File viewing commands

Users Groups , Root Access to Linux is based on users and groups Each user has a password and belongs to one or more groups. Group information is stored in the /etc/group file.  The groups command displays the user's groups.

Logging Into Login from Putty Enter the IP address and port At the login prompt enter the following Login as : <ctrainee> <ctrainee>@192.168.13.129's password:<pwd> After successful logging : [ctrainee@cavisson-server ~]$

File System / bin usr lib home etc tmp sbin dev | netstorm ctrainee work scripts bin

File System /bin Essential user command binaries (for use by all users) /etc Host-specific system configuration /home User home directories. This is where you save your personal files /lib Essential shared libraries and kernel modules /usr /usr is the second major section of the filesystem. /usr is shareable, read-only data. /var /var contains variable data files. This includes spool directories and files, administrative and logging data, and transient and temporary files. /proc System information stored in memory mirrored as files.

Commands ls List Files cp Copy Files mv Rename rm Delete cd Change directory pwd Print current directory mkdir Create directory rmdir Delete directory

Ls command ls – List of directory contents ls ls –l adf etc pdf scenarios testcases webapps ls –l rw-rw-r-- 1 netstorm netstorm 2588 Aug 4 10:59 README drwxr-xr-x 6 netstorm netstorm 4096 Aug 4 10:59 samples

Permissions Link Users Group Size Date Directory or file -rw-rw-r-- 1 netstorm netstorm 47182 Oct 7 06:216 abc.txt file permissions – 12 bits (4 octal values) Uppermost 3 bits – suid(4), sgid(2), sticky (1) Next 3 bits – user read(4), write (2), execute (1) Next 3 bits – group Next 3 bits -- others

Read permission.  Regular file : file can be opened and read. Directory : list the contents of the directory. Write permission.  Regular file : file can be modified ,write new data. Directory : can add, remove, and rename files in the directory. Execute permission.  Regular file : execute file as a program or a shell script. Directory : to access files in the directory and enter it, with the cd command

cp - copy files and directories Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. cp source.txt dest Copies source.txt to dest dir

mv Moving and renaming moving or renaming files. $ mv file file2 If file2 doesn't exist, it'll be created, but if it exists, it'll be overwritten

rm removes files or dir Removes file rm file Forcefully removes file from the system rm –f abc.txt

cd change directory changing directory to ab cd ab prints the current directory pwd /home/ctrainee

mkdir & rmdir mkdir – make directory abc mkdir abc Rmdir – remove directory abc rmdir abc

File viewing commands Cat Tail More Grep

cat command cat - concatenate files and print on the standard output $ cat xtest #!/bin/bash Y=`cat /etc/build_num` echo $Y Y=`expr $Y + 1`

Tail Command tail - output the last part of files tail webapps/logs/TR1001/summary.report Test Case Name: tests Test Run Number: 1001 Test Started At: 9/27/12 09:26:11 Test Configuration

more command More is a filter for paging through text one screenful at a time For example, more out.log

grep command Searches the given file for lines matching the given strings or words. Search /etc/passwd for boo user: $ grep boo /etc/passwd