Posts

Showing posts from February, 2017

Example syntax for Secure Copy (scp)

from: http://www.hypexr.org/linux_scp_help.php What is Secure Copy? scp  allows files to be copied to, from, or between different hosts. It uses  ssh  for data transfer and provides the same authentication and same level of security as  ssh . Examples Copy the file "foobar.txt" from a remote host to the local host $ scp your_username@remotehost.edu:foobar.txt /some/local/directory Copy the file "foobar.txt" from the local host to a remote host $ scp foobar.txt your_username@remotehost.edu:/some/remote/directory Copy the directory "foo" from the local host to a remote host's directory "bar" $ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu" $ scp your_username@rh1.edu:/some/remote/directory/foobar.txt \ your_username@rh2.edu:/some/remote/directory/ Copying the files "foo.txt" ...

UNDERSTANDING THE DIG COMMAND

OVERVIEW The command  dig  is a tool for querying DNS nameservers for information about host addresses, mail exchanges, nameservers, and related information. This tool can be used from any Linux (Unix) or Macintosh OS X operating system. The most typical use of dig is to simply query a single host. INSTRUCTIONS Run the command: dig mt-example.com View the Output: ; <<>> DiG 9.4.1-P1 <<>> mt-example.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25550 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;mt-example.com. IN A ;; ANSWER SECTION: mt-example.com. 28626 IN A 205.186.150.66 ;; Query time: 4 msec ;; SERVER: 64.207.129.21#53(64.207.129.21) ;; WHEN: Thu Aug 7 16:49:35 2008 ;; MSG SIZE rcvd: 48 Understanding the Results The opening section of dig’s output tells us a little about itself (version 9.4.1) and the global optio...