Professional Documents
Culture Documents
Shikhar Verma
2
Introduction
Red Hat System Administration I
Installation of Red Hat Enterprise Linux 7
Shikhar Verma
3
Shikhar Verma
5
What is a path?
A path is a unique location to a file or a folder in a file system of an OS. A path to a file is a combination of /
and alpha-numeric characters.
An absolute path is defined as the specifying the location of a file or directory from the root directory(/). In
other words we can say absolute path is a complete path from start of actual filesystem from / directory.
/var/ftp/pub
/etc/samba.smb.conf
/boot/grub/grub.conf
If you see all these paths started from / directory which is a root directory for every Linux/Unix machines.
Shikhar Verma
6
Relative path is defined as path related to the present working directory(pwd). Suppose I am located in
/var/log and I want to change directory to /var/log/kernel. I can use relative path concept to change directory
to kernel
cd kernel
cd /var/log/kernel
Shikhar Verma
7
Lab Session
Navigating Paths
#pwd
#ls
#cd Videos
#pwd
#cd
#ls –l; ls –R; touch
Shikhar Verma
8
Shikhar Verma
9
Shikhar Verma
10
Shikhar Verma
11
Shikhar Verma
12
Lab Session
Shikhar Verma
13
Shikhar Verma
14
Shikhar Verma
15
Shikhar Verma
16
Shikhar Verma
17
Shikhar Verma
18
Shikhar Verma
19
20
21
22
23
24
Shikhar Verma
25
Shikhar Verma
26
Shikhar Verma
27
Shikhar Verma
31
Shikhar Verma
34
Shikhar Verma
35
Shikhar Verma
36
Shikhar Verma
37
Shikhar Verma
38
Shikhar Verma
39
Shikhar Verma
40
Shikhar Verma
41
Shikhar Verma
42
Shikhar Verma
43
Shikhar Verma
44
Shikhar Verma
45
Shikhar Verma
46
Shikhar Verma
47
Shikhar Verma
50
Shikhar Verma
51
Shikhar Verma
52
Thanks