-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux
More file actions
120 lines (80 loc) · 1.36 KB
/
linux
File metadata and controls
120 lines (80 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Linux Intrduction
------------------
- Linux is free and Open Source Operating System.
- Deveoped by Linus Torvalds.
- Its platform independent.
- Its just like Windows XP, Windows 7 or 8 etc..
- Linux Distributions or Flavours:
RHEL
SUSE
Ubuntu
Fedora
Debian
CentOS
- The top-most directory is the root directory, also called as Slash.
- or simple /
- Under the root there are several subdirectories :
/home
/root
/var
/etc
/opt
/temp
/boot
/lib
/usr
/bin
/mnt
Operating Syste: A group of programs and functions, that provides basic functionality on a computer.
Boot: The process by which the computer is powered on.
Commands to Practice:
Pwd
cd
cd ~
cd ..
Listing files inside a directory:
ls -l
ls -ld
s -a
ls -f
ls -lt
ls -lh
ls -lR
tree
cp -p source destination
cp -R source_dir destination_dir
mv file1 file2
rm -i filenae
rm -R dir-name
rm -rf dir-name
rmdir dir-name
mkdir dir-name
tuch filename
chmod
echo "Hello World"
man
dpkg -l
hostname
passwd
whoami
top
ps
find /var/www -name 'yogi'
grep
head
tail
mkdir
ls -l
Owner rwr = 4+2+1 = 7
Group r-x = 4+0+1 = 5
other r-x = 4+0+1 = 5
chmod 755 test
Vi editor:
vi -o [small o] - Horizontal Views
vi -O - vertical Views
Escape Mode:
- yy copy
- pp paste
- dd delete
ctrl w is to switch between 2 files.
- ~ (tilde) is the Home Directory