NETRC(5)
๐ธ NETRC(5) โ the file formats manual, but make it cute ๐ธ
okay so bestie, we're talking about netrc, netrc(5), the File Formats Manual section, aka netrc, .netrc โ your user configuration era for ftp. ๐
โจ NAME โจ
netrc, .netrc โ user configuration for ftp
๐ DESCRIPTION ๐
okay so this file is literally where you keep your configuration and autologin info for the File Transfer Protocol client, ftp(1). it's giving โจsetupโจ.
The .netrc file contains login and initialization information used by the auto-login process. no cap. it resides in the user's home directory โ that's its home, its main character address ๐ ๐
The following tokens are recognized; they may be separated by spaces, tabs, or new-lines. so go off with the whitespace, she doesn't care ๐
machinename โ Identify a remote machine name. the auto-login process searches the.netrcfile for amachinetoken that matches the remote machine specified on theftpcommand line or as anopencommand argument. Once a match is made, the subsequent.netrctokens are processed, stopping when the end of file is reached or anothermachineor adefaulttoken is encountered. like... she finds her match and then she stops, periodt. ๐defaultโ This is the same asmachinename except thatdefaultmatches any name. there can be only onedefaulttoken, and it must be after allmachinetokens. she's the last one at the party, not the first. This is normally used as:
default login anonymous password user@site
thereby giving the user automatic anonymous ftp login to machines not specified in .netrc. This can be overridden by using the -n flag to disable auto-login. so if you don't want the default vibe, hit -n and she'll chill ๐ซถ
loginname โ Identify a user on the remote machine. If this token is present, the auto-login process will initiate a login using the specified name. that's your username bestie, go claim it ๐passwordstring โ Supply a password. If this token is present, the auto-login process will supply the specified string if the remote server requires a password as part of the login process. Note that if this token is present in the.netrcfile for any user other thananonymous,ftpwill abort the auto-login process if the.netrcis readable by anyone besides the user. ๐ญ so like. chmod that thing. she is NOT playing about your privacy. it's giving ๐accountstring โ Supply an additional account password. If this token is present, the auto-login process will supply the specified string if the remote server requires an additional account password, or the auto-login process will initiate anACCTcommand if it does not. extra password era, we love a bonus step โจmacdefname โ Define a macro. This token functions like theftpmacdefcommand functions. A macro is defined with the specified name; its contents begin with the next.netrcline and continue until a null line (consecutive new-line characters) is encountered. If a macro namedinitis defined, it is automatically executed as the last step in the auto-login process. soinitis the one that runs itself, no invitation needed, she just shows up ๐งโจ
๐ SEE ALSO ๐
and that's the whole page bestie, you ate that ๐ โจ
this lil masterpiece came from the Linux NetKit (0.17) era, dated September 23, 1997, and lives in section NETRC(5) โ vintage but still iconic, fr fr ๐๐
๐ฆ where this page comes from
- centos-stream 10: ftp 0.17-97.el10 ยท BSD-4-Clause-UC
- centos-stream 9: ftp 0.17-89.el9 ยท BSD with advertising
- fedora 43: ftp 0.17-99.fc43 ยท BSD-4-Clause-UC
- fedora 44: ftp 0.17-100.fc44 ยท BSD-4-Clause-UC
- opensuse-leap 16.0: ftp 0.17-bp160.1.6 ยท BSD-3-Clause
- opensuse-leap 16.0: ftp 0.17-bp160.1.6 ยท BSD-3-Clause
- opensuse-leap 16.0: ftp 0.17-bp160.1.6 ยท BSD-3-Clause
- opensuse-leap 16.0: ftp 0.17-bp160.1.6 ยท BSD-3-Clause
- Copyright (c) 1985, 1989, 1990 The Regents of the University of California
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms