Linux: Difference between revisions
→Permissions: convert to a table |
|||
Line 11: | Line 11: | ||
== Permissions == | == Permissions == | ||
r | {| class="wikitable" border="1" style="border-collapse:collapse" | ||
! style="text-align: center;"| Letter | |||
w | ! Number | ||
|- | |||
x | | r | ||
| 4 | |||
|- | |||
| w | |||
| 2 | |||
r-x | |- | ||
| x | |||
rwx | | 1 | ||
|- | |||
| rw- | |||
| 6 | |||
|- | |||
| r-x | |||
| 5 | |||
|- | |||
| rwx | |||
| 7 | |||
|} |
Revision as of 10:33, 2 April 2018
SSH
Push public SSH key to a server
$ ssh-copy-id -p 41111 -i ~/.ssh/id_rsa.pub mhan@remote.server.com
File
Permissions
Letter | Number |
---|---|
r | 4 |
w | 2 |
x | 1 |
rw- | 6 |
r-x | 5 |
rwx | 7 |