| netrc - manage ~/.netrc file |
netrc - manage ~/.netrc file
netrc list [PROPERTY_NAME [PROPERTY_NAME [...]]]
netrc set [machine MACHINE_NAME | default] PROPERTY_NAME PROPERTY_VALUE [PROPERTY_NAME PROPERTY_VALUE [...]]
Query entries from ~/.netrc file. Set and add properties as well as new entries.
netrc list command lists machine and login names by default in tabular data format.
Supply PROPERTY_NAMEs to display other properies besides machine names.
Machine name is the key, so it's always displayed.
netrc set command set one or more property of the given MACHINE_NAME machine.
If the property does not exist yet, it's appended after the last property.
If the machine does not exist yet, it's appended after the last machine entry.
As the machine name is the key, if there are multiple entries with the same machine name, yet different login names, refer to one of those by LOGIN_NAME@MACHINE_NAME. A login token has to be there in this case. While the simple MACHINE_NAME keeps referring to the first occurrance.
Refer to the default entry by an empty machine name.
Alternative path instead of ~/.netrc.
File is not locked during read/write.
Does not support macdef token.
netrc(5)