This cheatsheet covers some of the basics of the GNU OS. It is based on the inetutils manual.
All programs accept
--help
--usage
--version
Almost all programs have an exit status of 0 to mean success. non-0 means failure.
will show the you the domain part of the fully qualified domain name.
hostname [option] hostname NAME
-d
get the domain name-f
fully qualified domain name-i
get the IP addressget the hostname
info:inetutils#traceroute invocation
-f NUM
-g GATES
-I
-m NUM
-p PORT set the destination of the target port
--resolve-hostnames Attempt to resolve all addresses as hostnames
Copy files between remote machines
Perhaps I could use this save files on a remote machine with ftp execute a program on a remote machine rexec --user=LOGIN --password=PASS --host=HOST [OPTION] COMMAND
login to a remote server
executes commands on a remote host and copies the local stdin to that of the remote commands. It also takes the remote standard output and makes it the local input!
And I can do this
#+BEGIN_SRC sh ln -s $(which rsh) HOSTNAME HOSTNAME ls #+END_SRC
Afterwards, HOSTNAME will be passed to 'rsh' as host name whenever the command HOSTNAME is issued.
If you wish to talk to someone on your machine, the person is just the username of the person on your machine, if the person is on a different machine then use username@host
ttyname is typically of the form ttyXX