Skip to content

Commit 911be89

Browse files
author
Adnan Ahmed
authored
minor update
1 parent b7a87a8 commit 911be89

File tree

1 file changed

+37
-38
lines changed

1 file changed

+37
-38
lines changed

README.md

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,22 @@ Clears content on window.
7272
<td><a href="#c-cp">cp</a></td>
7373
<td><a href="#d-diff">diff</a></td>
7474
<td><a href="#e-file">file</a></td>
75-
<td><a href="#f-gunzip">gunzip</a></td>
76-
<td><a href="#g-gzcat">gzcat</a></td>
77-
<td><a href="#h-gzip">gzip</a></td>
78-
<td><a href="#i-head">head</a></td>
79-
<td><a href="#j-lpq">lpq</a></td>
75+
<td><a href="#f-find">find</a></td>
76+
<td><a href="#g-gunzip">gunzip</a></td>
77+
<td><a href="#h-gzcat">gzcat</a></td>
78+
<td><a href="#i-gzip">gzip</a></td>
79+
<td><a href="#j-head">head</a></td>
8080
</tr>
8181
<tr>
82-
<td><a href="#k-lpr">lpr</a></td>
83-
<td><a href="#l-lprm">lprm</a></td>
84-
<td><a href="#m-ls">ls</a></td>
85-
<td><a href="#n-more">more</a></td>
86-
<td><a href="#o-mv">mv</a></td>
87-
<td><a href="#p-rm">rm</a></td>
88-
<td><a href="#q-tail">tail</a></td>
89-
<td><a href="#r-touch">touch</a></td>
90-
<td><a href="#s-find">find</a></td>
82+
<td><a href="#k-lpq">lpq</a></td>
83+
<td><a href="#l-lpr">lpr</a></td>
84+
<td><a href="#m-lprm">lprm</a></td>
85+
<td><a href="#n-ls">ls</a></td>
86+
<td><a href="#o-more">more</a></td>
87+
<td><a href="#p-mv">mv</a></td>
88+
<td><a href="#q-rm">rm</a></td>
89+
<td><a href="#r-tail">tail</a></td>
90+
<td><a href="#s-touch">touch</a></td>
9191
</tr>
9292
</table>
9393

@@ -132,32 +132,42 @@ Example:
132132
$ file index.html
133133
index.html: HTML document, ASCII text
134134
```
135+
### f. `find`
136+
Find files in directory
137+
```bash
138+
find directory options pattern
139+
```
140+
Example:
141+
```bash
142+
$ find . -name README.md
143+
$ find /home/user1 -name '*.png'
144+
```
135145

136-
### f. `gunzip`
146+
### g. `gunzip`
137147
Un-compresses files compressed by gzip.
138148
```bash
139149
gunzip filename
140150
```
141151

142-
### g. `gzcat`
152+
### h. `gzcat`
143153
Lets you look at gzipped file without actually having to gunzip it.
144154
```bash
145155
gzcat filename
146156
```
147157

148-
### h. `gzip`
158+
### i. `gzip`
149159
Compresses files.
150160
```bash
151161
gzip filename
152162
```
153163

154-
### i. `head`
164+
### j. `head`
155165
Outputs the first 10 lines of file
156166
```bash
157167
head filename
158168
```
159169

160-
### j. `lpq`
170+
### k. `lpq`
161171
Check out the printer queue.
162172
```bash
163173
lpq
@@ -170,19 +180,19 @@ active adnanad 59 demo 399360 bytes
170180
1st adnanad 60 (stdin) 0 bytes
171181
```
172182

173-
### k. `lpr`
183+
### l. `lpr`
174184
Print the file.
175185
```bash
176186
lpr filename
177187
```
178188

179-
### l. `lprm`
189+
### m. `lprm`
180190
Remove something from the printer queue.
181191
```bash
182192
lprm jobnumber
183193
```
184194

185-
### m. `ls`
195+
### n. `ls`
186196
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).
187197
```bash
188198
ls option
@@ -200,34 +210,34 @@ drwxr-xr-x 17 adnan staff 578 Mar 27 23:36 .git
200210
-rwxr-xr-x 1 adnan staff 2702 Mar 25 18:08 .gitignore
201211
</pre>
202212

203-
### n. `more`
213+
### o. `more`
204214
Shows the first part of a file (move with space and type q to quit).
205215
```bash
206216
more filename
207217
```
208218

209-
### o. `mv`
219+
### p. `mv`
210220
Moves a file from one location to other.
211221
```bash
212222
mv filename1 filename2
213223
```
214224
Where `filename1` is the source path to the file and `filename2` is the destination path to the file.
215225

216-
### p. `rm`
226+
### q. `rm`
217227
Removes a file. Using this command on a directory gives you an error.
218228
`rm: directory: is a directory`
219229
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.
220230
```bash
221231
rm filename
222232
```
223233

224-
### q. `tail`
234+
### r. `tail`
225235
Outputs the last 10 lines of file. Use `-f` to output appended data as the file grows.
226236
```bash
227237
tail filename
228238
```
229239

230-
### r. `touch`
240+
### s. `touch`
231241
Creates or updates your file.
232242
```bash
233243
touch filename
@@ -237,17 +247,6 @@ Example:
237247
$ touch trick.md
238248
```
239249

240-
### s. `find`
241-
Find files in directory
242-
```bash
243-
find directory options pattern
244-
```
245-
Example:
246-
```bash
247-
$ find . -name README.md
248-
$ find /home/user1 -name '*.png'
249-
```
250-
251250
## 1.2. Text Operations
252251

253252
<table>

0 commit comments

Comments
 (0)