Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.

Slides:



Advertisements
Similar presentations
POS/420 Philip Robbins – March 19, 2013 (Week 2) University of Phoenix Mililani Campus Introduction to Unix.
Advertisements

Linux Booting Procedure
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
A Guide to Unix Using Linux Fourth Edition
CS 497C – Introduction to UNIX Lecture 11: - The File System Chin-Chih Chang
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.
1 Unix Systems Administration Y. K. Chang Generic Unix Directory Structure /bin /dev /etc /sbin /home /lost+found / Root Dir /dsk /rdsk /term /pts /rmt.
1.1 The Linux System: Design Principles Linux is a multiuser, multitasking system with a full set of UNIX-compatible tools. Its file system adheres to.
Information Networking Security and Assurance Lab National Chung Cheng University 1 Linux Common Commands (I) alias - assign name to specified command.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Introduction to Linux David E. Douglas University Professor—Information Systems Walton College of Business
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Linux Linux File System.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
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
The file structure and related utilities CS240 Computer Science II.
Manage Directories and Files in Linux
Linux Filesystem Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Unix Basics Chapter 4.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Linux Introduction What is Linux? How do you use it?
Filesystem Hierarchy Dr. Michael L. Collard 1.
USING YOUR INSTALLED LINUX SYSTEM.  Common Linux Tasks  Installing Custom Packages  Common GUI Applications  Command Line Shell  Directory Structure/Navigation.
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
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:
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.
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:
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
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.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 File-System Interface.
The Unix File system (UFS) Presented by: Gurpreet Singh Assistant Professor Department of School of Computing and Engineering Galgotias University.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
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.
Date: 14-Oct-2014 LINUX and Vi Editor Vinit S Bhosle
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.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
Thousands of Linux Installations (and only one administrator) A Linux cluster client for the University of Manchester A V Le Blanc I T Services University.
UNIX Filesystem and Hierarchy AfNOG 2008 Workshop May Rabat, Morocco.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Filesystem Hierarchy Operating systems I800
Linux 101 Training Module Linux Basics.
Welcome to Linux Chap#1 Hanin Abdulrahman.
UBUNTU INSTALLATION
Linux file system "On a UNIX system, everything is a file;
Linux/Unix - Download Ubuntu Linux :
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Basic Commands ls cp ls –l (in detail format) echo ls –a
UNIX Filesystem and Hierarchy
Structure of Unix OS.
9 Linux on the Desktop.
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Operating Systems Lecture 4.
Perl Scripting and The File system
Welcome to Linux Chap#1 Hanin Abdulrahman.
Software I: Utilities and Internals
Welcome to Linux Chap#1.
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Presentation transcript:

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  root directory - / Every single file and directory starts from the root directory. Only root user has write privilege “/root” is root user’s home directory -- not same as “/”

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /bin directory – user binaries Contains binary executables. Common commands you need to use in single-user modes are located under this directory. Commands used by all the users of the system are located here. /bin subdirectory For example: ps, ls, ping, grep, cp. Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /sbin directory – system binaries Just like /bin, /sbin also contains binary executables. The linux commands located under this directory are used typically by system aministrator, for system maintenance purpose. Contains binaries to configure the OS Require “root” privilege For example: iptables, reboot, fdisk, ifconfig, swapon Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /etc directory – Configuration files Contains configuration files required by all programs. startup and shutdown shell scripts used to start/stop individual programs. For example: /etc/resolv.conf, /etc/logrotate.conf Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /device directory – Device files Contains device files. These include terminal devices, usb, or any device attached to the system. Appear to be ordinary files For example: ls /dev/sd* Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /proc directory – Process Info Contains information about system process. This is a pseudo filesystem contains information about running process. For example: ls /proc/{pid} directory contains information about the process with that particular pid. This is a virtual filesystem with text information about system resources. For example: ls /proc/uptime Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /var directory – Variable files var stands for variable files. Content of the files that are expected to grow can be found under this directory. This includes — system log files (/var/log); packages and database files (/var/lib); s (/var/mail); print queues (/var/spool); lock files (/var/lock); temp files needed across reboots (/var/tmp); Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /tmp directory – Temporary files Directory that contains temporary files created by system and users. Files are deleted when system is rebooted. Never store data here that is important Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /usr directory – User Programs “usr” stands for Unix System Resources Contains binaries, libraries, documentation, and source-code for second level programs. /usr/bin contains binary files for user programs. /usr/sbin contains binary files for system administrators. For example: atd, cron, sshd, useradd, userdel /usr/lib contains libraries for /usr/bin and /usr/sbin /usr/local contains users programs that you install from source. For example: when you install apache from source, it goes under /usr/local/apache2 Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /home directory – Home Directories Home directories for all users to store their personal files. Common to name users home directory after user name For example: /home/john, /home/nikita Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /boot directory – Boot loader files Contains boot loader related files. All files needed to boot the computer Don’t change very often Kernel initrd, vmlinux, grub files are located under /boot Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /lib directory – System Libraries Contains library files that supports the binaries located under /bin and /sbin Library filenames are either ld* or lib*.so.* Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /opt directory – Optional add-on Apps opt stands for optional. Contains add-on applications from individual vendors. add-on applications should be installed under either /opt/ or /opt/ sub-directory Software outside the distribution repository Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /mnt directory – Mount directory Temporary mount directory where sysadmins can mount filesystems Should be empty and only used for temporary mount points Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /media directory – Removable Media Devices Temporary mount directory for removable devices. For examples: /media/cdrom for CD-ROM; /media/floppy for floppy drives; /media/cdrecorder for CD writer Note: Binaries are files that contain compiled source code (or machine code).

Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree  /srv directory – Service Data srv stands for service. Use /srv for data that is served by your system FHS allows locating cvs, rsync, ftp and www data Note: Binaries are files that contain compiled source code (or machine code).