1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 00:26:00 +02:00

Added: Cal, srm, md5, md5sum, xed

Edited cp and rm. Fixed markdown escaping the wildcard.
This commit is contained in:
Peter Tripp 2014-02-10 15:44:02 -08:00
parent 4858b7f6bd
commit a85601486c
7 changed files with 87 additions and 6 deletions

19
common/cal.md Normal file
View file

@ -0,0 +1,19 @@
# cal
> Prints calendar information
- Display a calendar for the current month or specified month
`cal`
`cal -m {{12}}`
`cal -m {{Dec}}`
- Display a calendar for the current year or a specified year
`cal -y`
`cal 2013`
- Display date of Easter (western churches)
`ncal -e`
`ncal -e 2013`

View file

@ -10,10 +10,12 @@
`cp {{/path/to/original}} ../{{/path/to/copy}}`
- Copy directories recursive using the option -r.
- Copy directories recursive using the option -r. Optionally showing files as they are copied.
`cp -r {{/path/to/original}} {{/path/to/copy}}`
- Copy files in verbose mode, showing files as they are copied. (Mostly interesting with -r option).
`cp -vr {{/path/to/original}} {{/path/to/copy}}`
- Make a copy of a file adding and extension or changing an extension
`cp {{file.html}}\{,.backup\}`
`cp file.\{html,backup\}`

View file

@ -2,7 +2,7 @@
> Remove files or directories
- Remove files from arbitrary
- Remove files from arbitrary locations
`rm {{/path/to/file}} {{/otherpath/to/file2}}`
@ -12,4 +12,4 @@
- Prompt before every removal
`rm -i *`
`rm -i {{\*}}`

18
common/srm.md Normal file
View file

@ -0,0 +1,18 @@
# srm
> Securely remove files or directories
> Overwrites the existing data one or multiple. Drop in replacement for rm.
- Removes a file after overwriting (single pass, 7 pass, 35 pass)
`srm -s {{/path/to/file}}`
`srm -m {{/path/to/file}}`
`srm {{/path/to/file}}`
- Scurely remove recursively a directory and all it's subdirectories
`srm -r {{/path/to/folder}}`
- Prompt before every removal
`srm -i {{\*}}`

13
linux/md5sum.md Normal file
View file

@ -0,0 +1,13 @@
# md5sum
> Calculate MD5 cryptographic checksums
- Calculate the MD5 checksum for file(s) or files in a directory, one checksum per file
`md5sum {{filename1}}`
`md5sum {{filename1}} {{filename2}}`
`md5sum {{directory/\*}}`
- Read a file of MD5SUMs and verify all files have matching checksums
`md5sum -c {{filename.md5}}`

13
osx/md5.md Normal file
View file

@ -0,0 +1,13 @@
# md5
> Calculate MD5 cryptographic checksums
- Calculate the MD5 checksum for file(s) or files in a directory, one checksum per file
`md5 {{filename1}}`
`md5 {{filename1}} {{filename2}}`
`md5 {{directory/\*}}`
- Output only the md5 checksum (no filename)
`md5 -q {{filename}}`

16
osx/xed.md Normal file
View file

@ -0,0 +1,16 @@
# xed
> Opens files for editing in XCode
- Open file(s) in XCode
`xed {{file1}}`
`xed {{/path/to/file1}} {{/path/to/file2}}`
- Open file(s) in XCode, create if it doesn't exist
`xed -c {{filename1}}`
- Open a file in XCode and jump to line number 75
`xed -l 75 {{filename}}`