Basic Commands ls cp ls –l (in detail format) echo ls –a

Slides:



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

Unit 5 – User Administration Randy Marchany VA Tech Computing Center.
Basic Unix system administration
A Guide to Unix Using Linux Fourth Edition
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Lesson 22 – Introduction to Linux Systems Administration.
CSE 303 Lecture 2 Introduction to bash shell
Guide To UNIX Using Linux Third Edition
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
Guide To UNIX Using Linux Fourth Edition
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 4 Working.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Manage Directories and Files in Linux
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Hacking Linux Systems.  Text Editors  vi, ex, pico, jove, GNU emacs  Shells  chs (C Shell), sh (Bourne Shell)  File navigation  cd, ls, cp, mv,
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
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)
IT2204: Systems Administration I 1 6b). Introduction to Linux.
Chapter 6: Linux Filesystem Administration
Chapter Two Exploring the UNIX File System and File Security.
1 Objectives Manage and install new file systems.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
There are three types of users in linux  System users: ?  Super user: ?  Normal users: ?
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Chapter 3 & 6 Root Status and users File Ownership Every file has a owner and group –These give read,write, and execute priv’s to the owner, group, and.
1 Begin to use Linux. 2 Background  Linux is an operating system similar to UNIX. It runs on many different computers and was first released in 1991.
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.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
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 Filesystem Hierarchy The Linux Documentation Project.
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
Red Hat ® I NTERNET S YS A DMIN Introduction to Linux.
Linux Filesystem Administration
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Getting Started with Linux
Filesystem Hierarchy Operating systems I800
Linux 101 Training Module Linux Basics.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Linux file system "On a UNIX system, everything is a file;
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
C151 Multi-User Operating Systems
Unix System Administration
Users/Groups/Permissions
Basic knowledge about Linux
Command Line Interface for Beginners
9 Linux on the Desktop.
CSE 374 Programming Concepts & Tools
Introduction to UNIX.
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Chapter 7 File and file System structure
Working with Mac OS and Linux
Devices, Linux Filesystems,and the Filesystem Hirarchy standard
Presentation transcript:

Basic Commands ls cp ls –l (in detail format) echo ls –a (all files including hidden files) whoami pwd who cd more touch init [1..6] grep ssh cat vi (Text Editor)

Network Administration Module 0 : Linux – Basic Commands

Basic Commands (Cont…) | (pipeline) env > (redirect) set >> (redirect append) info history hostname !n (execute history) uptime mkdir rm rmdir mv shutdown – h now shutdown –r now

Basic Commands (Cont…) fdisk jobs su find su - ifconfig mount ifdown umount ifup uname –r man ln (hard link) man –k ln –s (soft Link)

Device files IDE hard drive – /dev/hda, /dev/hdb, … Partition (IDE) – /dev/hda1, /dev/hda2 … SATA hard drive – /dev/sda, /dev/sdb, … Partition (SATA) – /dev/sda1, /dev/sda2, … CDROM - /dev/cdrom DVDROM - /dev/dvd Floppy Drive - /dev/fd0

Disk Management df mkswap du For file and directory mkfs fsck option –k in 1-k block-size –m in 1-M block-size –h human readable mkswap du For file and directory mkfs fsck

User Management useradd usermod userdel Option –r (remove all files in home directory) groupadd groupmod groupdel

User Management (Configuration files) /etc/passwd student:x:501:501:Full Time:/home/student:/bin/bash /etc/shadow student1:!!:13571:0:99999:7::: student:$1$SaChG8Zj$vQuk0TSIgd:13560:0:99999:7::: /etc/group student:x:501:johnchan,jameswong username UID Group ID Home directory Default shell Password (not used) Description / GECOS username password Group Name Group ID Group members Group password (Not used)

Environment Variables PS1 – PS4 PATH HOME SHELL USER Commands set env echo $XXXX Note: When you use shell variable, you need to $ before the name of the variable (e.g. $PATH) Environment variable e.g. PATH

File System File System supported by Linux ext2 / ext3 (ext3 with journaling) FAT16 NTFS HPFS …. ISO9660 (CDROM)

Directory Layout / Structure /dev /etc /etc/sysconfig /lib /bin and /sbin /mnt (or /media) /opt /proc /usr /usr/local /var /var/log /home /root You should understand/know which type of file is stored in these directories? any specific functions.

Important Files (configuration files) /etc/fstab /etc/inittab /etc/crontab /etc/grub.conf /etc/hosts /etc/passwd /etc/group /etc/shadow ~/.bash_profile ~/.bash_logout /etc/bashrc ~/.bashrc You should understand/know What kind of information is stored in these configuration files? Functions of these configuration files (i.e. Which program/component is controlled by these configuration files).

Kernel Version Linux Kernel Version Meaning of kernel version Different portion of kernel version Kernel Version.Major.Minor.Patch (e.g. 2.6.18.45) Distribution Example: Redhat, Mandrake, Debian, SuSe, Ubuntu, Knoppix, Fedora Core, CentOS … … What is distribution meant? What is System Administration / Duty of Administrator Administrator account - root You should know which command(s) can be used to complete a specific task e.g create a new user account – useradd command and passwd command

Home Directory & Run Level Relative path and absolute path . Current directory .. Parent directory Home Directory : ~ Configuration Files Meaning of the content of some configuration files (e.g. passwd, group, shadow) Directory Layout Run Level 0, 1, 3, 5 and 6