mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-20 16:27:49 +03:00
Fix lint for common
This commit is contained in:
parent
3e1df9f818
commit
56a7cba656
@ -1,6 +1,6 @@
|
||||
# alias
|
||||
|
||||
> Creates an alias for a word when used
|
||||
> Creates an alias for a word when used
|
||||
> as the first word of a command
|
||||
|
||||
- creating a generic alias
|
||||
@ -21,4 +21,4 @@
|
||||
|
||||
- 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)
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- 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.
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
`chmod u+rw {{file}}`
|
||||
|
||||
- Remove executable rights from the (g)roup
|
||||
- Remove executable rights from the (g)roup
|
||||
|
||||
`chmod g-x {{file}}`
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
`chown {{user}} {{path/to/file}}`
|
||||
|
||||
- change the user and group of a file
|
||||
|
||||
|
||||
`chown {{user}}:{{group}} {{path/to/file}}`
|
||||
|
||||
- recursively change the owner of an entire folder
|
||||
@ -15,7 +15,7 @@
|
||||
`chown -R {{user}} {{path/to/folder}}`
|
||||
|
||||
- change the owner of a symbolic link
|
||||
|
||||
|
||||
`chown -h {{user}} {{path/to/symlink}}`
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# cksum
|
||||
|
||||
> 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
|
||||
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
`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}}`
|
||||
|
||||
- Horizontally append images
|
||||
- Horizontally append images
|
||||
|
||||
`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`
|
||||
|
@ -15,7 +15,7 @@
|
||||
`cp -r {{/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\}`
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
- Download a URL to a file
|
||||
|
||||
`curl "{{URL}}" -o filename`
|
||||
`curl "{{URL}}" -o filename`
|
||||
|
||||
- send form-encoded data
|
||||
|
||||
|
@ -18,6 +18,6 @@
|
||||
|
||||
`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}}`
|
||||
|
@ -1,6 +1,6 @@
|
||||
# fdupes
|
||||
|
||||
> Finds duplicate files in a given
|
||||
> Finds duplicate files in a given
|
||||
> set of directories
|
||||
|
||||
- search a single directory
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
`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}}`
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#FSWEBCAM
|
||||
# fswebcam
|
||||
|
||||
> small and simple webcam for *nix
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#gem
|
||||
# gem
|
||||
|
||||
> Interact with the package manager for the Ruby programming language.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git add
|
||||
# git add
|
||||
|
||||
> Adds changed files to the index
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git branch
|
||||
# git branch
|
||||
|
||||
> Main command for working with branches
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git checkout
|
||||
# git checkout
|
||||
|
||||
> Checkout a branch or paths to the working tree
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- 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
|
||||
|
||||
@ -12,4 +12,4 @@
|
||||
|
||||
- Do it quietly
|
||||
|
||||
`git clone -q`
|
||||
`git clone -q`
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git commit
|
||||
# git commit
|
||||
|
||||
>Commit staged files to the repository
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git init
|
||||
# git init
|
||||
|
||||
> Initializes a new local Git repository
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- Initialize a barebones repository
|
||||
|
||||
`git init --bare`
|
||||
`git init --bare`
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git log
|
||||
# git log
|
||||
|
||||
>Show a history of commits
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git merge
|
||||
# git merge
|
||||
|
||||
> Merge branches
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git remote
|
||||
# git remote
|
||||
|
||||
> Manage set of tracked repositories (“remotes”)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git status
|
||||
# git status
|
||||
|
||||
> Show the index (changed files)
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- Give output in short format
|
||||
|
||||
`git status -s`
|
||||
`git status -s`
|
||||
|
@ -1,4 +1,4 @@
|
||||
#git
|
||||
# git
|
||||
|
||||
> Main command for all `git` commands
|
||||
|
||||
@ -16,4 +16,4 @@
|
||||
|
||||
- Execute Git command
|
||||
|
||||
`git {{COMMAND}}`
|
||||
`git {{COMMAND}}`
|
||||
|
@ -20,4 +20,4 @@
|
||||
|
||||
- Import a public key
|
||||
|
||||
`gpg --import {{public.gpg}}`
|
||||
`gpg --import {{public.gpg}}`
|
||||
|
@ -4,7 +4,7 @@
|
||||
> Supports simple patterns and regular expressions
|
||||
|
||||
- search for an exact string
|
||||
|
||||
|
||||
`grep {{something}} {{file_path}}`
|
||||
|
||||
- search recursively in current directory for an exact string
|
||||
@ -19,7 +19,7 @@
|
||||
|
||||
`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}}`
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 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
|
||||
|
||||
@ -20,4 +20,4 @@
|
||||
|
||||
- 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`
|
||||
|
||||
- List available presets
|
||||
- List available presets
|
||||
|
||||
`HandBrakeCLI --preset-list`
|
||||
|
||||
- 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}}`
|
||||
|
||||
- Upgrade all installed Haxe libraries
|
||||
- Upgrade all installed Haxe libraries
|
||||
|
||||
`haxelib upgrade`
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#ipcs
|
||||
# ipcs
|
||||
|
||||
> Display information about ressources used in IPC (Inter-process Communication)
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- General information about all the IPC
|
||||
|
||||
`ipcs -a`
|
||||
`ipcs -a`
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
`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}}`
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
`mtr -n {{host}}`
|
||||
|
||||
- Generate output after pinging each hop 10 times
|
||||
- Generate output after pinging each hop 10 times
|
||||
|
||||
`mtr -w {{host}}`
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# mysql
|
||||
|
||||
> the MySQL command-line tool
|
||||
> the MySQL command-line tool
|
||||
|
||||
- Connect to a database
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# mysqldump
|
||||
|
||||
> Backups mysql databases
|
||||
> Backups mysql databases
|
||||
|
||||
- creating a backup
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
`nc {{ip_address}} {{port}}`
|
||||
|
||||
- set a timeout
|
||||
- set a timeout
|
||||
|
||||
`nc -w {{timeout_in_seconds}} {{ipaddress}} {{port}}`
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#node
|
||||
# node
|
||||
|
||||
>Main node command
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
|
||||
- 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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#patch
|
||||
# patch
|
||||
|
||||
> Patch a file (or files) with a diff file.
|
||||
> Note that diff files contain both the target filenames and list of changes.
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
> 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}}`
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
- Replace whitespace with underscores
|
||||
|
||||
`rename --nows {{*.txt}}`
|
||||
`rename --nows {{*.txt}}`
|
||||
`rename 's/\s+/_/g' {{*.txt}}`
|
||||
|
||||
- No action, just show what renames would occur
|
||||
|
@ -20,6 +20,6 @@
|
||||
|
||||
`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}}`
|
||||
|
@ -1,4 +1,5 @@
|
||||
# salt-key
|
||||
|
||||
> Invoke salt locally on a salt minion.
|
||||
|
||||
- Perform a highstate on this minion
|
||||
|
@ -1,4 +1,5 @@
|
||||
# salt-key
|
||||
|
||||
> Manages salt minion keys on the salt master
|
||||
> 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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#salt
|
||||
# salt
|
||||
|
||||
>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.
|
||||
|
||||
- Start a new screen session
|
||||
- Start a new screen session
|
||||
|
||||
`screen`
|
||||
|
||||
|
@ -16,10 +16,10 @@
|
||||
`ssh {{username}}@{{remote_host}} -p {{2222}}`
|
||||
|
||||
- run a command on a remote server
|
||||
|
||||
|
||||
`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}}`
|
||||
|
||||
@ -27,6 +27,6 @@
|
||||
|
||||
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
|
||||
|
||||
- ssh enable agent forward
|
||||
- ssh enable agent forward
|
||||
|
||||
`ssh -A {{username}}@{{remote_host}}`
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
`sudo {{ls}} {{/usr/local/scrt}}`
|
||||
|
||||
|
||||
- To edit a file as user www:
|
||||
|
||||
`sudo -u {{www}} {{vi}} {{/var/www/index.html}}`
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
> 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}}`
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#TEE
|
||||
# tee
|
||||
|
||||
> read from standard input and write to standard output and files
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
`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 {{YYYYMMDDHHMM.SS}} {{filename}}
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
`wget --limit-rate={{200k}} {{url}}`
|
||||
|
||||
- Continue an incomplete download
|
||||
- Continue an incomplete download
|
||||
|
||||
`wget -c {{url}}`
|
||||
|
||||
|
@ -7,6 +7,6 @@
|
||||
`which {{ls}}`
|
||||
`which {{executable}}`
|
||||
|
||||
- If there are multiple executables which match, display all
|
||||
- If there are multiple executables which match, display all
|
||||
|
||||
`which -a {{executable}}`
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
`zpool histrory {{poolname}}`
|
||||
|
||||
- Create a mirrored pool.
|
||||
- Create a mirrored pool.
|
||||
|
||||
`zpool create {{poolname}} mirror {{disk1}} {{disk2}}`
|
||||
`zpool create {{poolname}} mirror {{disk1}} {{disk2}} mirror {{disk3}} {{disk4}}`
|
||||
|
Loading…
Reference in New Issue
Block a user