mirror of https://github.com/CrimsonTome/tldr.git
Fixed English tenses as reported by tldr-lint
parent
34e1ac7b2e
commit
5a26958e94
|
@ -3,7 +3,7 @@
|
|||
> Creates an alias for a word when used.
|
||||
> As the first word of a command.
|
||||
|
||||
- Creating a generic alias:
|
||||
- Create a generic alias:
|
||||
|
||||
`alias {{word}}="{{command}}"`
|
||||
|
||||
|
@ -15,10 +15,10 @@
|
|||
|
||||
`alias -p`
|
||||
|
||||
- Turning rm an interative command:
|
||||
- Turn rm an interative command:
|
||||
|
||||
`alias {{rm}}="{{rm -i}}"`
|
||||
|
||||
- Overriding la as ls -a:
|
||||
- Override la as ls -a:
|
||||
|
||||
`alias {{la}}="{{ls -a}}"`
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Dependency manager for the Ruby programming language.
|
||||
|
||||
- Installs all gems defined in the gemfile expected in the working directory:
|
||||
- Install all gems defined in the gemfile expected in the working directory:
|
||||
|
||||
`bundle install`
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
> Create gifs.
|
||||
|
||||
- Making a GIF animation with gifsicle:
|
||||
- Make a GIF animation with gifsicle:
|
||||
|
||||
`gifsicle --delay={{10}} --loop *.gif > {{anim.gif}}`
|
||||
|
||||
- Extracting frames from an animation:
|
||||
- Extract frames from an animation:
|
||||
|
||||
`gifsicle {{anim.gif}} '#0' > {{firstframe.gif}}`
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
> Creates a directory.
|
||||
|
||||
- Creates a directory in current folder or given path:
|
||||
- Create a directory in current folder or given path:
|
||||
|
||||
`mkdir {{directory}}`
|
||||
|
||||
- Creates directories recursively (useful for creating nested dirs):
|
||||
- Create directories recursively (useful for creating nested dirs):
|
||||
|
||||
`mkdir -p {{path}}`
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
`mysqldump -u {{user}} --password {{database_name}} > {{filename.sql}}`
|
||||
|
||||
- Restoring a backup, user will be prompted for a password:
|
||||
- Restore a backup, user will be prompted for a password:
|
||||
|
||||
`mysql -u {{user}} --password {{database_name}} < {{filename.sql}}`
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
|
||||
`redis-cli -a {{password}}`
|
||||
|
||||
- Executes Redis command:
|
||||
- Execute Redis command:
|
||||
|
||||
`redis-cli {{redis command}}`
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
> Removes a directory.
|
||||
|
||||
- Removes directory, provided it is empty. Use `rm` to remove not empty directories:
|
||||
- Remove directory, provided it is empty. Use `rm` to remove not empty directories:
|
||||
|
||||
`rmdir {{directory}}`
|
||||
|
||||
- Removes directories recursively (useful for nested dirs):
|
||||
- Remove directories recursively (useful for nested dirs):
|
||||
|
||||
`rmdir -p {{path}}`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> 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):
|
||||
- Remove a file after overwriting (single pass, 7 pass, 35 pass):
|
||||
|
||||
`srm -s {{/path/to/file}}`
|
||||
`srm -m {{/path/to/file}}`
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
> Filesystem client based on ssh.
|
||||
|
||||
- Mounting remote directory:
|
||||
- Mount remote directory:
|
||||
|
||||
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
|
||||
|
||||
- Unmounting remote directory:
|
||||
- Unmount remote directory:
|
||||
|
||||
`fusermount -u {{mountpoint}}`
|
||||
|
||||
- Mounting remote directory from server with specific port:
|
||||
- Mount remote directory from server with specific port:
|
||||
|
||||
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -p {{2222}}`
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Execute a command as another user.
|
||||
|
||||
- Listing of an unreadable directory:
|
||||
- List of an unreadable directory:
|
||||
|
||||
`sudo {{ls}} {{/usr/local/scrt}}`
|
||||
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
|
||||
`view {{file}}`
|
||||
|
||||
- Exiting vim:
|
||||
- Exit vim:
|
||||
|
||||
`[Esc] (to switch to normal mode), then :q`
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
`vimtutor {{language}}`
|
||||
|
||||
- Exiting the tutor:
|
||||
- Exit the tutor:
|
||||
|
||||
`[Esc] (to switch to normal mode), then :q`
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
> Display who is logged in and related data (processes, boot time).
|
||||
|
||||
- Displays the username, line, and time of all currently logged-in sessions:
|
||||
- Display the username, line, and time of all currently logged-in sessions:
|
||||
|
||||
`who`
|
||||
|
||||
- Displays information only for the current terminal session:
|
||||
- Display information only for the current terminal session:
|
||||
|
||||
`who am i`
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
`dd if=/dev/{{source_drive}} of=/dev/{{dest_drive}} bs=4M conv=noerror`
|
||||
|
||||
- Generating a file of 100 random bytes by using kernel random driver:
|
||||
- Generate a file of 100 random bytes by using kernel random driver:
|
||||
|
||||
`dd if=/dev/urandom of={{random_file}} bs=100 count=1`
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
`{{arguments}} | xargs {{command}}`
|
||||
|
||||
- Handling whitespace in arguments:
|
||||
- Handle whitespace in arguments:
|
||||
|
||||
`{{arguments_null_terminated}} | xargs -0 {{command}}`
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
`dd if=/dev/{{source_drive}} of=/dev/{{dest_drive}} bs=4m conv=noerror`
|
||||
|
||||
- Generating a file of 100 random bytes by using kernel random driver:
|
||||
- Generate a file of 100 random bytes by using kernel random driver:
|
||||
|
||||
`dd if=/dev/urandom of={{random_file}} bs=100 count=1`
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Copy files and folders.
|
||||
|
||||
- Overwrites contents of destination folder with contents of source folder:
|
||||
- Overwrite contents of destination folder with contents of source folder:
|
||||
|
||||
`ditto {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> QuickLook server tool.
|
||||
|
||||
- Displays QuickLook for one or multiple files:
|
||||
- Display QuickLook for one or multiple files:
|
||||
|
||||
`quicklook -p {{filename}} {{filename2}}`
|
||||
|
||||
|
|
Loading…
Reference in New Issue