mirror of https://github.com/CrimsonTome/tldr.git
commit
acf8756f56
|
@ -1,6 +1,6 @@
|
||||||
# alias
|
# alias
|
||||||
|
|
||||||
> Creates an alias for a word when used
|
> Creates an alias for a word when used
|
||||||
> as the first word of a command
|
> as the first word of a command
|
||||||
|
|
||||||
- creating a generic alias
|
- creating a generic alias
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
|
|
||||||
- overriding la as ls -a
|
- overriding la as ls -a
|
||||||
|
|
||||||
`alias {{la}}="{{ls -a}}"`
|
`alias {{la}}="{{ls -a}}"`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#ar
|
# ar
|
||||||
|
|
||||||
> Create, modify, and extract from archives (.a .so .o)
|
> Create, modify, and extract from archives (.a .so .o)
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- List the content (files) of libfoo.a
|
- List the content (files) of libfoo.a
|
||||||
|
|
||||||
`ar -t libfoo.a`
|
`ar -t libfoo.a`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#bundle
|
# bundle
|
||||||
|
|
||||||
> Dependency manager for the Ruby programming language.
|
> Dependency manager for the Ruby programming language.
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
`chmod u+rw {{file}}`
|
`chmod u+rw {{file}}`
|
||||||
|
|
||||||
- Remove executable rights from the (g)roup
|
- Remove executable rights from the (g)roup
|
||||||
|
|
||||||
`chmod g-x {{file}}`
|
`chmod g-x {{file}}`
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
`chown {{user}} {{path/to/file}}`
|
`chown {{user}} {{path/to/file}}`
|
||||||
|
|
||||||
- change the user and group of a file
|
- change the user and group of a file
|
||||||
|
|
||||||
`chown {{user}}:{{group}} {{path/to/file}}`
|
`chown {{user}}:{{group}} {{path/to/file}}`
|
||||||
|
|
||||||
- recursively change the owner of an entire folder
|
- recursively change the owner of an entire folder
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
`chown -R {{user}} {{path/to/folder}}`
|
`chown -R {{user}} {{path/to/folder}}`
|
||||||
|
|
||||||
- change the owner of a symbolic link
|
- change the owner of a symbolic link
|
||||||
|
|
||||||
`chown -h {{user}} {{path/to/symlink}}`
|
`chown -h {{user}} {{path/to/symlink}}`
|
||||||
|
|
||||||
- use the owner and group of a reference file and apply those values to another file
|
- use the owner and group of a reference file and apply those values to another file
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#CHSH
|
# chsh
|
||||||
|
|
||||||
> Change user's login shell
|
> Change user's login shell
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# cksum
|
# cksum
|
||||||
|
|
||||||
> Calculates CRC checksums and byte counts of a file
|
> Calculates CRC checksums and byte counts of a file
|
||||||
> Note, on old UNIX systems the CRC implementation may differ.
|
> Note, on old UNIX systems the CRC implementation may differ.
|
||||||
|
|
||||||
- Display a 32 bit checksum, size in bytes and filename
|
- Display a 32 bit checksum, size in bytes and filename
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
`convert {{image.jpg}} {{image.png}}`
|
`convert {{image.jpg}} {{image.png}}`
|
||||||
|
|
||||||
- Scale an image 50% it's original size
|
- Scale an image 50% it's original size
|
||||||
|
|
||||||
`convert {{image.png}} -resize 50% {{image2.png}}`
|
`convert {{image.png}} -resize 50% {{image2.png}}`
|
||||||
|
|
||||||
- Horizontally append images
|
- Horizontally append images
|
||||||
|
|
||||||
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
|
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
`cp -r {{/path/to/original}} {{/path/to/copy}}`
|
`cp -r {{/path/to/original}} {{/path/to/copy}}`
|
||||||
`cp -vr {{/path/to/original}} {{/path/to/copy}}`
|
`cp -vr {{/path/to/original}} {{/path/to/copy}}`
|
||||||
|
|
||||||
- Make a copy of a file adding and extension or changing an extension
|
- Make a copy of a file adding and extension or changing an extension
|
||||||
|
|
||||||
`cp {{file.html}}\{,.backup\}`
|
`cp {{file.html}}\{,.backup\}`
|
||||||
`cp file.\{html,backup\}`
|
`cp file.\{html,backup\}`
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
- Download a URL to a file
|
- Download a URL to a file
|
||||||
|
|
||||||
`curl "{{URL}}" -o filename`
|
`curl "{{URL}}" -o filename`
|
||||||
|
|
||||||
- send form-encoded data
|
- send form-encoded data
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,6 @@
|
||||||
|
|
||||||
`diff -r {{directory1}} {{directory2}}`
|
`diff -r {{directory1}} {{directory2}}`
|
||||||
|
|
||||||
- Compare directories, only showing the names of files that differ
|
- Compare directories, only showing the names of files that differ
|
||||||
|
|
||||||
`diff -rq {{directory1}} {{directory2}}`
|
`diff -rq {{directory1}} {{directory2}}`
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# fdupes
|
# fdupes
|
||||||
|
|
||||||
> Finds duplicate files in a given
|
> Finds duplicate files in a given
|
||||||
> set of directories
|
> set of directories
|
||||||
|
|
||||||
- search a single directory
|
- search a single directory
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
`ffmpeg -i {{video-filename}} -vn -ar 44100 -ac 2 -ab 192 -f mp3 {{sound.mp3}}`
|
`ffmpeg -i {{video-filename}} -vn -ar 44100 -ac 2 -ab 192 -f mp3 {{sound.mp3}}`
|
||||||
|
|
||||||
- Convert frames from a video into individual numbered images
|
- Convert frames from a video into individual numbered images
|
||||||
|
|
||||||
`ffmpeg -i {{video-filename}} {{image%d.png}}`
|
`ffmpeg -i {{video-filename}} {{image%d.png}}`
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#FSWEBCAM
|
# fswebcam
|
||||||
|
|
||||||
> small and simple webcam for *nix
|
> small and simple webcam for *nix
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#gem
|
# gem
|
||||||
|
|
||||||
> Interact with the package manager for the Ruby programming language.
|
> Interact with the package manager for the Ruby programming language.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git add
|
# git add
|
||||||
|
|
||||||
> Adds changed files to the index
|
> Adds changed files to the index
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git branch
|
# git branch
|
||||||
|
|
||||||
> Main command for working with branches
|
> Main command for working with branches
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git checkout
|
# git checkout
|
||||||
|
|
||||||
> Checkout a branch or paths to the working tree
|
> Checkout a branch or paths to the working tree
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- Create and switch to a new branch
|
- Create and switch to a new branch
|
||||||
|
|
||||||
`git checkout -b {{BRANCH-NAME}}`
|
`git checkout -b {{BRANCH-NAME}}`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git clone
|
# git clone
|
||||||
|
|
||||||
> Clone an existing repository
|
> Clone an existing repository
|
||||||
|
|
||||||
|
@ -12,4 +12,4 @@
|
||||||
|
|
||||||
- Do it quietly
|
- Do it quietly
|
||||||
|
|
||||||
`git clone -q`
|
`git clone -q`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git commit
|
# git commit
|
||||||
|
|
||||||
>Commit staged files to the repository
|
>Commit staged files to the repository
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- Replace the last commit with currently staged changes
|
- Replace the last commit with currently staged changes
|
||||||
|
|
||||||
`git commit --amend`
|
`git commit --amend`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git diff
|
# git diff
|
||||||
|
|
||||||
> Show changes to tracked files
|
> Show changes to tracked files
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git init
|
# git init
|
||||||
|
|
||||||
> Initializes a new local Git repository
|
> Initializes a new local Git repository
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- Initialize a barebones repository
|
- Initialize a barebones repository
|
||||||
|
|
||||||
`git init --bare`
|
`git init --bare`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git log
|
# git log
|
||||||
|
|
||||||
>Show a history of commits
|
>Show a history of commits
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git merge
|
# git merge
|
||||||
|
|
||||||
> Merge branches
|
> Merge branches
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- Edit the merge message
|
- Edit the merge message
|
||||||
|
|
||||||
`git merge -e {{BRANCH-NAME}}`
|
`git merge -e {{BRANCH-NAME}}`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git push
|
# git push
|
||||||
|
|
||||||
> Push commits to a remote repository
|
> Push commits to a remote repository
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git remote
|
# git remote
|
||||||
|
|
||||||
> Manage set of tracked repositories (“remotes”)
|
> Manage set of tracked repositories (“remotes”)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git status
|
# git status
|
||||||
|
|
||||||
> Show the index (changed files)
|
> Show the index (changed files)
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- Give output in short format
|
- Give output in short format
|
||||||
|
|
||||||
`git status -s`
|
`git status -s`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#git
|
# git
|
||||||
|
|
||||||
> Main command for all `git` commands
|
> Main command for all `git` commands
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@
|
||||||
|
|
||||||
- Execute Git command
|
- Execute Git command
|
||||||
|
|
||||||
`git {{COMMAND}}`
|
`git {{COMMAND}}`
|
||||||
|
|
|
@ -20,4 +20,4 @@
|
||||||
|
|
||||||
- Import a public key
|
- Import a public key
|
||||||
|
|
||||||
`gpg --import {{public.gpg}}`
|
`gpg --import {{public.gpg}}`
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
> Supports simple patterns and regular expressions
|
> Supports simple patterns and regular expressions
|
||||||
|
|
||||||
- search for an exact string
|
- search for an exact string
|
||||||
|
|
||||||
`grep {{something}} {{file_path}}`
|
`grep {{something}} {{file_path}}`
|
||||||
|
|
||||||
- search recursively in current directory for an exact string
|
- search recursively in current directory for an exact string
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
`grep -C 3 {{something}} {{file_path}}`
|
`grep -C 3 {{something}} {{file_path}}`
|
||||||
|
|
||||||
- print the count of matches instead of the matching text
|
- print the count of matches instead of the matching text
|
||||||
|
|
||||||
`grep -c {{something}} {{file_path}}`
|
`grep -c {{something}} {{file_path}}`
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# gzip
|
# gzip
|
||||||
|
|
||||||
> Compress/uncompress files with gzip compression (LZ77)
|
> Compress/uncompress files with gzip compression (LZ77)
|
||||||
|
|
||||||
- compress a file, replacing it with a gzipped compressed version
|
- compress a file, replacing it with a gzipped compressed version
|
||||||
|
|
||||||
|
@ -20,4 +20,4 @@
|
||||||
|
|
||||||
- specify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6
|
- specify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6
|
||||||
|
|
||||||
`gzip -9 -c {{file.ext}} > compressed-file.ext.gz`
|
`gzip -9 -c {{file.ext}} > compressed-file.ext.gz`
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
|
|
||||||
`HandBrakeCLI -i {{input.mp4}} -o {{output.mp4} -w 320 -l 240`
|
`HandBrakeCLI -i {{input.mp4}} -o {{output.mp4} -w 320 -l 240`
|
||||||
|
|
||||||
- List available presets
|
- List available presets
|
||||||
|
|
||||||
`HandBrakeCLI --preset-list`
|
`HandBrakeCLI --preset-list`
|
||||||
|
|
||||||
- Convert an AVI video to MP4 using the Android preset
|
- Convert an AVI video to MP4 using the Android preset
|
||||||
|
|
||||||
`HandBrakeCLI --preset="Android" -i {{input.ext}} -o {{output.mp4}}`
|
`HandBrakeCLI --preset="Android" -i {{input.ext}} -o {{output.mp4}}`
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
`haxelib install {{libname}}`
|
`haxelib install {{libname}}`
|
||||||
|
|
||||||
- Upgrade all installed Haxe libraries
|
- Upgrade all installed Haxe libraries
|
||||||
|
|
||||||
`haxelib upgrade`
|
`haxelib upgrade`
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#ipcs
|
# ipcs
|
||||||
|
|
||||||
> Display information about ressources used in IPC (Inter-process Communication)
|
> Display information about ressources used in IPC (Inter-process Communication)
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- General information about all the IPC
|
- General information about all the IPC
|
||||||
|
|
||||||
`ipcs -a`
|
`ipcs -a`
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
`MP4Box -info {{filename}}`
|
`MP4Box -info {{filename}}`
|
||||||
|
|
||||||
- Add an SRT subtitle file into an MP4 file
|
- Add an SRT subtitle file into an MP4 file
|
||||||
|
|
||||||
`MP4Box -add {{input-subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}`
|
`MP4Box -add {{input-subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}`
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
`mtr -n {{host}}`
|
`mtr -n {{host}}`
|
||||||
|
|
||||||
- Generate output after pinging each hop 10 times
|
- Generate output after pinging each hop 10 times
|
||||||
|
|
||||||
`mtr -w {{host}}`
|
`mtr -w {{host}}`
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# mysql
|
# mysql
|
||||||
|
|
||||||
> the MySQL command-line tool
|
> the MySQL command-line tool
|
||||||
|
|
||||||
- Connect to a database
|
- Connect to a database
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# mysqldump
|
# mysqldump
|
||||||
|
|
||||||
> Backups mysql databases
|
> Backups mysql databases
|
||||||
|
|
||||||
- creating a backup
|
- creating a backup
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
`nc {{ip_address}} {{port}}`
|
`nc {{ip_address}} {{port}}`
|
||||||
|
|
||||||
- set a timeout
|
- set a timeout
|
||||||
|
|
||||||
`nc -w {{timeout_in_seconds}} {{ipaddress}} {{port}}`
|
`nc -w {{timeout_in_seconds}} {{ipaddress}} {{port}}`
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#node
|
# node
|
||||||
|
|
||||||
>Main node command
|
>Main node command
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
|
|
||||||
- Execute node on a JS file
|
- Execute node on a JS file
|
||||||
|
|
||||||
`node {{FILENAME}}.js`
|
`node {{FILENAME}}.js`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#passwd
|
# passwd
|
||||||
|
|
||||||
> passwd is a tool used to change a user's password.
|
> passwd is a tool used to change a user's password.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#patch
|
# patch
|
||||||
|
|
||||||
> Patch a file (or files) with a diff file.
|
> Patch a file (or files) with a diff file.
|
||||||
> Note that diff files contain both the target filenames and list of changes.
|
> Note that diff files contain both the target filenames and list of changes.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Find or signal process by name
|
> Find or signal process by name
|
||||||
|
|
||||||
- return PIDs of any running processes with a matching command string
|
- return PIDs of any running processes with a matching command string
|
||||||
|
|
||||||
`pgrep {{Finder}}`
|
`pgrep {{Finder}}`
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
- Replace whitespace with underscores
|
- Replace whitespace with underscores
|
||||||
|
|
||||||
`rename --nows {{*.txt}}`
|
`rename --nows {{*.txt}}`
|
||||||
`rename 's/\s+/_/g' {{*.txt}}`
|
`rename 's/\s+/_/g' {{*.txt}}`
|
||||||
|
|
||||||
- No action, just show what renames would occur
|
- No action, just show what renames would occur
|
||||||
|
|
|
@ -20,6 +20,6 @@
|
||||||
|
|
||||||
`rsync -r mike@devbox:~/projects/cakeStore /Users/mike/devProjects/`
|
`rsync -r mike@devbox:~/projects/cakeStore /Users/mike/devProjects/`
|
||||||
|
|
||||||
- transfer file over SSH and show progress
|
- transfer file over SSH and show progress
|
||||||
|
|
||||||
`rsync -e ssh --progress {{remote_host_name}}:{{remote_file}} {{local_file}}`
|
`rsync -e ssh --progress {{remote_host_name}}:{{remote_file}} {{local_file}}`
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# salt-key
|
# salt-key
|
||||||
|
|
||||||
> Invoke salt locally on a salt minion.
|
> Invoke salt locally on a salt minion.
|
||||||
|
|
||||||
- Perform a highstate on this minion
|
- Perform a highstate on this minion
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# salt-key
|
# salt-key
|
||||||
|
|
||||||
> Manages salt minion keys on the salt master
|
> Manages salt minion keys on the salt master
|
||||||
> Needs to be run on the salt master, likely as root or with sudo
|
> Needs to be run on the salt master, likely as root or with sudo
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#salt-run
|
# salt-run
|
||||||
|
|
||||||
>Frontend for executing salt-runners on minions
|
>Frontend for executing salt-runners on minions
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#salt
|
# salt
|
||||||
|
|
||||||
>Execute commands and assert state on remote salt minions.
|
>Execute commands and assert state on remote salt minions.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Hold a session open on a remote server. Manage multiple windows with a single SSH connection.
|
> Hold a session open on a remote server. Manage multiple windows with a single SSH connection.
|
||||||
|
|
||||||
- Start a new screen session
|
- Start a new screen session
|
||||||
|
|
||||||
`screen`
|
`screen`
|
||||||
|
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
`ssh {{username}}@{{remote_host}} -p {{2222}}`
|
`ssh {{username}}@{{remote_host}} -p {{2222}}`
|
||||||
|
|
||||||
- run a command on a remote server
|
- run a command on a remote server
|
||||||
|
|
||||||
`ssh {{remote_host}} "{{command -with -flags}}"`
|
`ssh {{remote_host}} "{{command -with -flags}}"`
|
||||||
|
|
||||||
- ssh tunneling: dynamic port forwarding (SOCKS proxy on localhost:9999)
|
- ssh tunneling: dynamic port forwarding (SOCKS proxy on localhost:9999)
|
||||||
|
|
||||||
`ssh -D {{9999}} -C {{username}}@{{remote_host}}`
|
`ssh -D {{9999}} -C {{username}}@{{remote_host}}`
|
||||||
|
|
||||||
|
@ -27,6 +27,6 @@
|
||||||
|
|
||||||
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
|
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
|
||||||
|
|
||||||
- ssh enable agent forward
|
- ssh enable agent forward
|
||||||
|
|
||||||
`ssh -A {{username}}@{{remote_host}}`
|
`ssh -A {{username}}@{{remote_host}}`
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
`sudo {{ls}} {{/usr/local/scrt}}`
|
`sudo {{ls}} {{/usr/local/scrt}}`
|
||||||
|
|
||||||
|
|
||||||
- To edit a file as user www:
|
- To edit a file as user www:
|
||||||
|
|
||||||
`sudo -u {{www}} {{vi}} {{/var/www/index.html}}`
|
`sudo -u {{www}} {{vi}} {{/var/www/index.html}}`
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> Subversion command line client tool
|
> Subversion command line client tool
|
||||||
|
|
||||||
- Check out a working copy from a repository
|
- Check out a working copy from a repository
|
||||||
|
|
||||||
`svn co {{url/to/repository}}`
|
`svn co {{url/to/repository}}`
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
- Send changes from your working copy to the repository
|
- Send changes from your working copy to the repository
|
||||||
|
|
||||||
`svn ci -m {{commit log message}} {{[PATH...]}}`
|
`svn ci -m {{commit log message}} {{[PATH...]}}`
|
||||||
|
|
||||||
- Show detailed help
|
- Show detailed help
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#TEE
|
# tee
|
||||||
|
|
||||||
> read from standard input and write to standard output and files
|
> read from standard input and write to standard output and files
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
`touch {{filename}}`
|
`touch {{filename}}`
|
||||||
|
|
||||||
- Set the times on a file to those specified
|
- Set the times on a file to those specified
|
||||||
|
|
||||||
`touch -t 201412250801.59 {{filename}}
|
`touch -t 201412250801.59 {{filename}}
|
||||||
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}
|
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
`wget --limit-rate={{200k}} {{url}}`
|
`wget --limit-rate={{200k}} {{url}}`
|
||||||
|
|
||||||
- Continue an incomplete download
|
- Continue an incomplete download
|
||||||
|
|
||||||
`wget -c {{url}}`
|
`wget -c {{url}}`
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,6 @@
|
||||||
`which {{ls}}`
|
`which {{ls}}`
|
||||||
`which {{executable}}`
|
`which {{executable}}`
|
||||||
|
|
||||||
- If there are multiple executables which match, display all
|
- If there are multiple executables which match, display all
|
||||||
|
|
||||||
`which -a {{executable}}`
|
`which -a {{executable}}`
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
`zpool histrory {{poolname}}`
|
`zpool histrory {{poolname}}`
|
||||||
|
|
||||||
- Create a mirrored pool.
|
- Create a mirrored pool.
|
||||||
|
|
||||||
`zpool create {{poolname}} mirror {{disk1}} {{disk2}}`
|
`zpool create {{poolname}} mirror {{disk1}} {{disk2}}`
|
||||||
`zpool create {{poolname}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`
|
`zpool create {{poolname}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
|
|
||||||
`du -ah {{directory}}`
|
`du -ah {{directory}}`
|
||||||
|
|
||||||
- list the KB sizes of directories for N levels below the specified directory
|
- list the KB sizes of directories for N levels below the specified directory
|
||||||
|
|
||||||
`du -k -depth=1 {{directory}}`
|
`du -k -depth=1 {{directory}}`
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
`sysctl -n machdep.cpu.feature`
|
`sysctl -n machdep.cpu.feature`
|
||||||
|
|
||||||
- Set a changeable kernel state variable
|
- Set a changeable kernel state variable
|
||||||
|
|
||||||
`sysctl -w name=value`
|
`sysctl -w name=value`
|
||||||
`sysctl -w kern.maxfiles=15000`
|
`sysctl -w kern.maxfiles=15000`
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#WACAW
|
# wacaw
|
||||||
|
|
||||||
> a little command-line tool for Mac OS X that allows you to capture both still pictures and video from an attached camera.
|
> a little command-line tool for Mac OS X that allows you to capture both still pictures and video from an attached camera.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue