Format page to look like other bash command pages. (#26977)
This commit is contained in:
@ -7,6 +7,7 @@ title: Bash touch
|
|||||||
**Change timestamps of files.**
|
**Change timestamps of files.**
|
||||||
**Quickly create new files.**
|
**Quickly create new files.**
|
||||||
|
|
||||||
|
### Usage
|
||||||
```
|
```
|
||||||
touch [options] filename
|
touch [options] filename
|
||||||
```
|
```
|
||||||
@ -20,7 +21,9 @@ Commonly used options:
|
|||||||
- `-r` use timestamp from first file to second file.
|
- `-r` use timestamp from first file to second file.
|
||||||
- `-a` In case you want to only change the access time, use the -a command line option.
|
- `-a` In case you want to only change the access time, use the -a command line option.
|
||||||
- `-m` Similarly, if the requirement is to only change the modification time, use the -m command line option.
|
- `-m` Similarly, if the requirement is to only change the modification time, use the -m command line option.
|
||||||
Examples:
|
|
||||||
|
|
||||||
|
### Example
|
||||||
```
|
```
|
||||||
touch -t YYYYMMDDHHMM.SS filename
|
touch -t YYYYMMDDHHMM.SS filename
|
||||||
touch -r file1 file2
|
touch -r file1 file2
|
||||||
|
Reference in New Issue
Block a user