2 terminal questions

Abakadoosh

Smiling 'till death
1) whats the command to rename a file in the terminal?

2) is there a way to access other machines (who have file sharing turned on) through a network in the terminal?
 

macavenger

Registered
To answer the first question, you would use the mv command, i.e. "mv oldfilename newfilename"

Don't know about the second one.
 

Abakadoosh

Smiling 'till death
ok, ive been hearing a lot about ssh, just what exactly is that?
 

alexrd

Defender of the Realm
In order to answer the question you _did_ ask, I'll first answer a question you didn't ask:
<BR>
What is rlogin?
<BR>
One of the great strengths of a UNIX (or other command line line system) is that all you need is a terminal to access and control the entire system. Back in the early days, that meant a clunky dumb terminal, probably monochrome green, that sat across the room from the computer and still only got ~300baud (which means you have to wait... for.... each... character... you... type. Think about that next time you wonder why terminal commands are so terse).
<BR>
Anyway, as time went on, and networks came about, it became possible to attach a terminal from anywhere the network reached. The facility by which UNIX does this is rlogin.
<BR>
Now rlogin works great, and lets you control your machine from across the globe.... provided your network is the pre-90's, hippy, feel-good, academic internet, and you don't have to worry about security.
<BR>
rlogin sends all information un-encrypted (what's called "plain-text") This is tremendously bad if someone between you and your machine is listening for your password. The question, then, is how to have the power and convenience of remote logins with a secure, encrypted connection.


The answer is ssh, or Secure SHell.
From the ssh man page:
ssh (SSH client) is a program for logging into a remote machine and for
executing commands on a remote machine. It is intended to replace rlogin
and rsh, and provide secure encrypted communications between two untrust-
ed hosts over an insecure network.
<BR>
<BR>
ssh consists of a client (ssh) and a server (sshd).

In OSX, you control the server (sshd) from the Sharing Preference Pane in System Preferences. (Click on "Application", and check "Allow remote login" to turn it on). Any user defined in the Users Preference Pane will now be able to login remotely using her short name and password.


The client (ssh) is accessed on the command line (read: through the terminal) and was covered very well by testuser.

Hope this sheds some light...

-alex.
 

jimr

McInstigator
I looked here:

apropos appletalk
appleping(1) - exercises the AppleTalk network by sending packets to a named host
appletalk(8) - enables you to configure and display AppleTalk network interfaces
appletalk.cfg(5)
at_cho_prn(8) - allows you to choose a default printer on the AppleTalk internet
atlookup(1) - looks up network-visible entities (NVEs) registered on the AppleTalk network system
atprint(1) - transfer data to a printer using AppleTalk protocols
atstatus(1) - displays status information from an AppleTalk device

ssh is secure shell

supports a telnet-like communication using a variety of encryption algorithms.

basically if you don't mind that some third party can possibly see and capture your personal password when you log in to your machine. you can use standard telnet and ftp.

if you do mind....

you should use ssh.

and sftp.

http://www.rbrowser.com

for a GUI client to both and more.


it seems a worthwhile project to write a command line appletalk client.

you can activate/disable the server by the command line

and you can transfer ps files to a laserwriter.

it would look like an ftp client except it should know how to copy resources....

at this moment, it is easier to set up an ftp server on a mac and reach that through the command line

Last I looked, Net preZence was working

or you could just move the file you want to transfer into the httpd directory and turn personal websharing on.


otherwise, the finder is the best GUI program for that.

See Inside Appletalk. the api is available.
 
Top