Hoje daremos continuação a nossa série
sobre Linux mais a Fundo tão, bem iniciada pelo nosso
colega André Souza.
No artigo anteriror
dessa série falamos sobre alguns comandos de shell,
organização de diretórios e conceitos de
usuários, XWindow e vírus no Linux entre outros
assuntos de interesse de um iniciante em Linux.
Nesse artigo, explicaremos alguns comandos de rede e de
administração de usuários. Na próxima
semana, falaremos sobre outros comandos e um assunto
especial. Bem, vamos começar.
Comandos de Rede
Como o Linux foi feito na Internet, existem muitos
comandos nele para rede. Isso é bem natural. Vejamos
alguns deles:
-
who:
mostra quem está conectado no computador
| root |
tty1 |
Jun 24 10:33 |
| baptista |
tty2 |
Jun 24 10:34 |
| root |
tty3 |
Jun 24 10:37 |
-
telnet:
Permite acessar um computador remotamente. É mostrada
uma tela de acesso correspondente ao computador local onde
deve ser feita a autenticaçao do usuário com nome
da conta e senha para entrar no sistema.
telnet localhost
baptista@maquina: ~$ telnet localhost
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux 2.2 localhost
maquina login: baptista
Password:
Linux maquina 2.4.2-pre 99 #2 Thu Mar 20 04:30:31 PST 2001
i586 unknown
Copyright (C) 1993-2006 Software in the Public Interest,
and others
Most of the programs included with the Debian GNU/Linux
system are
freely redistributable; the exact distribution terms for
each program
are described in the individual files in
/usr/doc/*/copyright
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the
extent
permitted by applicable law.
No mail.
$
-
finger:
Mostra detalhes os detalhes de um usuário no sistema
baptista@maquina: ~$ finger baptista@localhost
[127.0.0.1]
Login: baptista Name: Paulo Henrique B de Oliveira
Directory: /home/baptista Shell: /bin/bash
Last login Thu Mar 20 10:55 (BRT) on ttyp0 from 10.0.0.3
No mail.
No Plan.
-
ftp:
Permite transferir arquivos entre computadores
baptista@maquina: ~$ ftp localhost
Connected to localhost.
220 maquina FTP server (Version 6.2/OpenBSD/Linux-0.10)
ready.Name (localhost:baptista): 331 Password required for
baptista. Password: 230- Linux maquina 2.4.2 #2 Thu Mar 20
04:30:31 PST 2001 i586 unknown
230- Copyright (C) 1993-2006 Software in the Public
Interest, and others
230- Most of the programs included with the Debian
GNU/Linux system are
230- freely redistributable; the exact distribution terms
for each program
230- are described in the individual files in
/usr/doc/*/copyright
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to
the extent
230- permitted by applicable law.
230 User suporte logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /etc/
250 CWD command successful.
ftp> get fstab
local: fstab remote: fstab
200 PORT command successful.
150 Opening BINARY mode data connection for 'fstab' (411
bytes).
226 Transfer complete.
411 bytes received in 0.02 secs (24.9 kB/s)
ftp> quit
221 Goodbye.