starting with linux

Download Starting with Linux

If you can't read please download the document

Upload: mesi-rendon

Post on 11-Apr-2017

176 views

Category:

Technology


0 download

TRANSCRIPT

Linux 001

Starting with Linux

Mesi Rendn@mesirendon

Type of installation

Dual boot

Live CD

Fresh install

Virtual installation

Selecting a distro

Stable code base

Changing

Upgrading software

Upgrading between versions

Large developer base

http://www.debian.org/

Solid, quality Linux distro (Long history)

It's the base for another famous Linux distros (e.g. Ubuntu)

Non-profit, non-commercial

Applicable to a wide range of users and uses

Easily obtained and updated

http://www.debian.org/

Starting the installation

Partitioning Hard Drives in Linux

Directory Structure of Linux

/binEssential binary commands

/bootBoot loader static files

/devDevices' files

/etcSystem specific configuration

/rootRoot's home file

/homeUsers home folder

/libKernel modules and essential shared libraries

/libXAlternative essential shared libraries

/mediaRemovable devices mount point

/mntTemporary filesystem mount point

/optAdditional software packs

/sbinEssentail system binaries

/srvService data provided by the system

/tmpTemporary files

/usrSecondary hierarchy

/varVariable data

In Linux everything is a file.

Filesystem

File Persmissions

chown [OPTION]... [OWNER][:[GROUP]] FILE...

-c, --changeslike verbose but report only when a change is made--dereferenceaffect the referent of each symbolic link, rather than the symlink-h, --no-dereferenceaffect each symbolic link instead of any referenced file--from=CURRENT_OWNER:CURRENT_GROUPchange the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute.--no-preserve-rootdo not treat '/' specially (the default)--preserve-rootfail to operate recursively on '/'-f, --silent, --quietsuppress most error messages--reference=RFILEuse RFILE's owner and group rather than specifying OWNER:GROUP values-R, --recursiveoperate on files and directories recursively-v, --verboseoutput a diagnostic for every file processed

The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect.-Hif a command line argument is a symbolic link to a directory, traverse it-Ltraverse every symbolic link to a directory encountered-Pdo not traverse any symbolic links (default)--helpdisplay this help and exit--versionoutput version information and exit

chmod [options] mode[,mode] file1 [file2 ...]

#Permissionrwx

7Full111

6Read and write110

5Read and execute101

4Read only100

3Write and execute011

2Write only010

1Execute only001

0None000

chmod [references][operator][modes] file ...

RefClassDescription

uUserOwner of the file

gGroupUsers who are members of the file's group

oOthersUsers who are neither the owner nor the file's group

aAllAll of above or ugo

OpDescription

+Adds the specified modes to the specified classes

-Removes the specified modes from the specified classes

=The modes specified are to be made the exact modes for the specified classes

ModeNameDescription

rReadRead a file or list a directory's contents

wWriteWrite to a file or directory

xExecuteExecute a file or recurse a directory tree

Starting with Linux by Mesi Rendn is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.