-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
277 lines (277 loc) · 10.2 KB
/
data.js
File metadata and controls
277 lines (277 loc) · 10.2 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
// Array of JSON objects with titles and texts
const data = [{
title: 'Directories (& some Files)',
textList: {
listedItems: [{
title: "ls",
explanation: "Lists the contents of the current directory, such as 'Documents' or 'Downloads'"
},
{
title: "cd",
explanation: "Changes the current working directory. For example: cd /home/user/documents"
},
{
title: "mkdir",
explanation: "Creates a new directory. For example: mkdir new_directory"
},
{
title: "rmdir",
explanation: "Deletes an empty directory. For example: rmdir empty_directory"
},
{
title: "rm",
explanation: "Deletes a file or directory (use with caution). For example: rm file.txt"
},
{
title: "cp",
explanation: "Copies a file or directory. For example: cp file.txt /home/user/documents/"
},
{
title: "mv",
explanation: "Moves or renames a file or directory. For example: mv file.txt new_name.txt"
},
{
title: "pwd",
explanation: "Prints the current working directory, such as '/home/user/documents'"
},
{
title: "find",
explanation: "Searches for files or directories matching a specific pattern. For example: find . -name \"*.txt\""
}
]
}
},
{
title: 'Files',
textList: {
listedItems: [{
title: "cat",
explanation: "Displays the contents of a file. For example: cat file.txt"
},
{
title: "less",
explanation: "Displays the contents of a file one screen at a time. For example: less file.txt"
},
{
title: "head",
explanation: "Displays the first few lines of a file. For example: head -n 10 file.txt (displays the first 10 lines of file.txt)"
},
{
title: "tail",
explanation: "Displays the last few lines of a file. For example: tail -n 5 file.txt (displays the last 5 lines of file.txt)"
},
{
title: "vi",
explanation: "Opens and edits a file using the vi text editor. For example: vi file.txt"
},
{
title: "nano",
explanation: "Opens and edits a file using the nano text editor. For example: nano file.txt"
},
{
title: "touch",
explanation: "Creates a new empty file. For example: touch new_file.txt"
}
]
}
},
{
title: 'Compression',
textList: {
listedItems: [{
title: "gzip",
explanation: "Compresses a file using the gzip algorithm. For example: gzip file.txt (creates a new file called file.txt.gz)"
},
{
title: "gunzip",
explanation: "Decompresses a file compressed with gzip. For example: gunzip file.txt.gz (creates a new file called file.txt)"
},
{
title: "bzip2",
explanation: "Compresses a file using the bzip2 algorithm. For example: bzip2 file.txt (creates a new file called file.txt.bz2)"
},
{
title: "bunzip2",
explanation: "Decompresses a file compressed with bzip2. For example: bunzip2 file.txt.bz2 (creates a new file called file.txt)"
},
{
title: "tar",
explanation: "Creates an archive of multiple files. For example: tar -cf archive.tar file1.txt file2.txt (creates a new file called archive.tar)"
},
{
title: "untar",
explanation: "Extracts the files from a tar archive. For example: tar -xf archive.tar (extracts the files from archive.tar)"
},
{
title: "zip",
explanation: "Compresses and archives multiple files. For example: zip archive.zip file1.txt file2.txt (creates a new file called archive.zip)"
},
{
title: "unzip",
explanation: "Extracts the files from a zip archive. For example: unzip archive.zip (extracts the files from archive.zip)"
}
]
}
},
{
title: 'Process Management',
textList: {
listedItems: [{
title: "ps",
explanation: "Lists the processes currently running on the system. For example: ps aux (lists all processes for all users)"
},
{
title: "top",
explanation: "Displays real-time information about the processes running on the system, including pid, user, memory etc."
},
{
title: "kill",
explanation: "Sends a signal to a process to terminate it. For example: kill 12345 (terminates the process with PID 12345)"
},
{
title: "nice",
explanation: "Changes the priority of a process. For example: nice -n 10 program.sh (starts the script program.sh with a lower priority)"
},
{
title: "renice",
explanation: "Changes the priority of an already running process. For example: renice -n 10 12345 (changes the priority of the process with PID 12345 to a lower value)"
},
{
title: "time",
explanation: "Measures the time taken by a command to run. For example: time ls (measures the time taken to run the ls command)"
},
{
title: "cron",
explanation: "Schedules tasks to be run automatically at a specified time. For example: cron job -t \"0 0 * * *\" -c \"command\" (runs the command every day at midnight)"
}
]
}
},
{
title: 'Searching',
textList: {
listedItems: [{
title: "grep",
explanation: "Searches for a pattern in one or more files. For example: grep \"pattern\" file.txt (searches for the string \"pattern\" in file.txt)"
},
{
title: "find",
explanation: "Searches for files or directories matching a specific pattern. For example: find . -name \"*.txt\" (searches for all files with the .txt extension in the current directory and its subdirectories)"
},
{
title: "locate",
explanation: "Searches for files or directories using a database of file names. For example: locate file.txt (searches for all files called file.txt in the database)"
},
{
title: "which",
explanation: "Shows the path of a command. For example: which ls (displays the path of the ls command)"
},
{
title: "whereis",
explanation: "Shows the location of a command, file, or man/manual page. For example: whereis ls (displays the location of the ls command and its man/manual page)"
}
]
}
},
{
title: 'Permissions',
textList: {
listedItems: [{
title: "chmod",
explanation: "Changes the permissions of a file or directory. For example: chmod 755 file.txt (gives read, execute permissions to owner and read, execute permissions to everyone else)"
},
{
title: "chown",
explanation: "Changes the owner of a file or directory. For example: chown user:group file.txt (changes the owner to user and the group to group)"
},
{
title: "chgrp",
explanation: "Changes the group of a file or directory. For example: chgrp group file.txt (changes the group to group)"
},
{
title: "umask",
explanation: "Sets the default permissions for newly created files and directories. For example: umask 022 (sets the default permissions to rw-r--r--)"
},
{
title: "sudo",
explanation: "Allows a user to execute a command with root privileges. For example: sudo apt-get update (updates the package manager database with root privileges)"
}
]
}
},
{
title: 'Networking',
textList: {
listedItems: [{
title: "ifconfig",
explanation: "Displays information about the network interfaces. For example: ifconfig (displays information about all interfaces)"
},
{
title: "ping",
explanation: "Sends an ICMP echo request to a host to test the connectivity. For example: ping example.com (sends an echo request to example.com)"
},
{
title: "traceroute",
explanation: "Shows the route taken by packets to a destination host. For example: traceroute example.com (displays the route to example.com)"
},
{
title: "netstat",
explanation: "Shows the status of the network connections. For example: netstat -an (displays all connections with numeric addresses)"
},
{
title: "route",
explanation: "Shows the routing table. For example: route -n (displays the routing table with numeric addresses)"
},
{
title: "nslookup",
explanation: "Queries the DNS to obtain information about a domain. For example: nslookup example.com (displays information about example.com)"
}
]
}
},
{
title: 'System',
textList: {
listedItems: [{
title: "uname",
explanation: "Shows the system information. For example: uname -a (displays all information)"
},
{
title: "uptime",
explanation: "Shows the time the system has been running. For example: uptime"
},
{
title: "df",
explanation: "Shows the disk usage. For example: df -h (displays the usage in human-readable format)"
},
{
title: "free",
explanation: "Shows the memory usage. For example: free -m (displays the usage in megabytes)"
},
{
title: "dmesg",
explanation: "Shows the kernel log. For example: dmesg"
},
{
title: "systemctl",
explanation: "Controls the system services. For example: systemctl start apache2 (starts the Apache web server service)"
},
{
title: "shutdown",
explanation: "Shuts down or restarts the system. For example: shutdown -h now (shuts down the system immediately)"
}
]
}
},
/*{
title: 'Compression',
textList: {
listedItems: [
{
title: "",
explanation: ""
}
]
}
},*/
];