1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 04:17:55 +01:00

Added cksum, touch, uname, which and sw_vers.

This commit is contained in:
Peter Tripp 2014-02-10 16:35:16 -08:00
parent a85601486c
commit a3ffe1f49a
5 changed files with 63 additions and 0 deletions

8
common/cksum.md Normal file
View file

@ -0,0 +1,8 @@
# cksum
> Calculates CRC checksums and byte counts of a file
> Note, on old UNIX systems the CRC implementation may differ.
- Display a 32 checksum, size in bytes and filename
`chksum {{filename}}`

16
common/touch.md Normal file
View file

@ -0,0 +1,16 @@
# touch
> Change a file access and modification times (atime, mtime)
- Create a new empty file(s) or change the times for existing file(s) to current time.`
`touch {{filename}}`
- Set the times on a file to those specified
`touch -t 201412250801.59 {{filename}}
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}
- Set the times on a file to match those on second file
`touch -r {{filename2}} {{filename}}`

15
common/uname.md Normal file
View file

@ -0,0 +1,15 @@
# uname
> Print operating system name
- Print all available operating system and kernel information
`uname -a`
- Print the current operating system name (e.g. Linux, Darwin, SunOS, etc)
`uname -s`
- Print the nodename (hostname) of the system
`uname -n`

12
common/which.md Normal file
View file

@ -0,0 +1,12 @@
# which
> Locate the a program in the user's path
- Display the path of an executable program
`which {{ls}}`
`which {{executable}}`
- If there are multiple executables which match, display all
`which -a {{executable}}`

12
osx/sw_vers.md Normal file
View file

@ -0,0 +1,12 @@
# sw_vers
> Print Mac OSX Software versioning information
- Print OSX Version
`sw_vers -productVersion`
- Print OSX Build
`sw_vers -buildVersion`