mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 03:55:43 +02:00
Merge branch 'master' into psql
This commit is contained in:
commit
77be8f37bf
4 changed files with 57 additions and 0 deletions
19
pages/common/cd.md
Normal file
19
pages/common/cd.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# cd
|
||||||
|
|
||||||
|
> Change the current working directory
|
||||||
|
|
||||||
|
- Go to the given directory
|
||||||
|
|
||||||
|
`cd {{/path/to/directoryl}}`
|
||||||
|
|
||||||
|
- Go to home directory of current user
|
||||||
|
|
||||||
|
`cd`
|
||||||
|
|
||||||
|
- Go up to the parent of the current directory
|
||||||
|
|
||||||
|
`cd ..`
|
||||||
|
|
||||||
|
- Go to the previously chosen directory
|
||||||
|
|
||||||
|
`cd -`
|
15
pages/common/mysql.md
Normal file
15
pages/common/mysql.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# mysql
|
||||||
|
|
||||||
|
> the MySQL command-line tool
|
||||||
|
|
||||||
|
- Connect to a database
|
||||||
|
|
||||||
|
`mysql {{database_name}}`
|
||||||
|
|
||||||
|
- Connect to a database using credentials
|
||||||
|
|
||||||
|
`mysql -u {{user}} -p{{password}} {{database_name}}`
|
||||||
|
|
||||||
|
- Execute SQL statements in a script file (batch file)
|
||||||
|
|
||||||
|
`mysql {{database_name}} < {{script.sql}}`
|
11
pages/linux/locate.md
Normal file
11
pages/linux/locate.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# locate
|
||||||
|
|
||||||
|
> find filenames quickly
|
||||||
|
|
||||||
|
- Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily).
|
||||||
|
|
||||||
|
`locate {{pattern}}`
|
||||||
|
|
||||||
|
- Recompute the database. You need to do it if you want to find recently added files.
|
||||||
|
|
||||||
|
`sudo updatedb`
|
12
pages/osx/locate.md
Normal file
12
pages/osx/locate.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
# locate
|
||||||
|
|
||||||
|
> find filenames quickly
|
||||||
|
|
||||||
|
- Look for pattern in the database. Note: the database is recomputed periodically (usually weekly or daily).
|
||||||
|
|
||||||
|
`locate {{pattern}}`
|
||||||
|
|
||||||
|
- Recompute the database. You need to do it if you want to find recently added files.
|
||||||
|
|
||||||
|
`sudo /usr/libexec/locate.updatedb`
|
Loading…
Add table
Reference in a new issue