You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,15 +92,16 @@ Clears content on window.
92
92
<td><a href="#k-head">head</a></td>
93
93
</tr>
94
94
<tr>
95
-
<td><a href="#l-lpq">lpq</a></td>
96
-
<td><a href="#m-lpr">lpr</a></td>
97
-
<td><a href="#n-lprm">lprm</a></td>
98
-
<td><a href="#o-ls">ls</a></td>
99
-
<td><a href="#p-more">more</a></td>
100
-
<td><a href="#q-mv">mv</a></td>
101
-
<td><a href="#r-rm">rm</a></td>
102
-
<td><a href="#s-tail">tail</a></td>
103
-
<td><a href="#t-touch">touch</a></td>
95
+
<td><a href="#l-less">less</a></td>
96
+
<td><a href="#m-lpq">lpq</a></td>
97
+
<td><a href="#n-lpr">lpr</a></td>
98
+
<td><a href="#o-lprm">lprm</a></td>
99
+
<td><a href="#p-ls">ls</a></td>
100
+
<td><a href="#q-more">more</a></td>
101
+
<td><a href="#r-mv">mv</a></td>
102
+
<td><a href="#s-rm">rm</a></td>
103
+
<td><a href="#t-tail">tail</a></td>
104
+
<td><a href="#u-touch">touch</a></td>
104
105
</tr>
105
106
</table>
106
107
@@ -187,7 +188,13 @@ Outputs the first 10 lines of file
187
188
head filename
188
189
```
189
190
190
-
### l. `lpq`
191
+
### l. `less`
192
+
Shows the contents of a file or a command output, one page at a time. It is similar to [more](#q-more), but has more advanced features and allows you to navigate both forward and backward through the file.
193
+
```bash
194
+
less filename
195
+
```
196
+
197
+
### m. `lpq`
191
198
Check out the printer queue.
192
199
```bash
193
200
lpq
@@ -200,19 +207,19 @@ active adnanad 59 demo 399360 bytes
200
207
1st adnanad 60 (stdin) 0 bytes
201
208
```
202
209
203
-
### m. `lpr`
210
+
### n. `lpr`
204
211
Print the file.
205
212
```bash
206
213
lpr filename
207
214
```
208
215
209
-
### n. `lprm`
216
+
### o. `lprm`
210
217
Remove something from the printer queue.
211
218
```bash
212
219
lprm jobnumber
213
220
```
214
221
215
-
### o. `ls`
222
+
### p. `ls`
216
223
Lists your files. `ls` has many options: `-l` lists files in 'long format', which contains the exact size of the file, who owns the file, who has the right to look at it, and when it was last modified. `-a` lists all files, including hidden files. For more information on this command check this [link](https://ss64.com/bash/ls.html).
-rwxr-xr-x 1 adnan staff 2702 Mar 25 18:08 .gitignore
231
238
</pre>
232
239
233
-
### p. `more`
240
+
### q. `more`
234
241
Shows the first part of a file (move with space and type q to quit).
235
242
```bash
236
243
more filename
237
244
```
238
245
239
-
### q. `mv`
246
+
### r. `mv`
240
247
Moves a file from one location to other.
241
248
```bash
242
249
mv filename1 filename2
@@ -248,21 +255,21 @@ Also it can be used for rename a file.
248
255
mv old_name new_name
249
256
```
250
257
251
-
### r. `rm`
258
+
### s. `rm`
252
259
Removes a file. Using this command on a directory gives you an error.
253
260
`rm: directory: is a directory`
254
261
To remove a directory you have to pass `-r` which will remove the content of the directory recursively. Optionally you can use `-f` flag to force the deletion i.e. without any confirmations etc.
255
262
```bash
256
263
rm filename
257
264
```
258
265
259
-
### s. `tail`
266
+
### t. `tail`
260
267
Outputs the last 10 lines of file. Use `-f` to output appended data as the file grows.
261
268
```bash
262
269
tail filename
263
270
```
264
271
265
-
### t. `touch`
272
+
### u. `touch`
266
273
Updates access and modification time stamps of your file. If it doesn't exists, it'll be created.
0 commit comments