Documente Academic
Documente Profesional
Documente Cultură
ve) (ttyp0)
Password:
leon:~>exit
tigre:~> passwd
Password changed.
tigre:~>
man [comando]
NAME
passwd - change password
SYNOPSIS
passwd [ name [ password ] ]
DESCRIPTION
Without arguments passwd will change the password for the
current user. First the user is asked for the old pass-
word, then prompted twice for the new password in order
to
catch typing errors. The new password must be at least
six
characters long, and have both upper and lower case
let-
ters or non-letters. The new password must not be equal
to
the old password, and it must not match the username.
The two argument form gives the user the password stated
as the second argument. This may be useful when
giving
many users an initial generated password.
FILES
/etc/passwd
/etc/shells
SEE ALSO
chsh(1), chfn(1)
BUGS
A password consisting of all digits is allowed.
No warnings are printed if the superuser chooses a
poor
password.
The -f and -s options are not supported.
tigre:~> who
root tty1 Sep 27 11:00
josev ttyp0 Sep 27 10:38 (pantera.felinos.ve)
jose ttyp1 Sep 27 10:59 (pantera.felinos.ve)
foto ttyp2 Sep 27 10:59 (pantera.felinos.ve)
tigre:~>
tigre:~> ls /
System.map cdrom/ lib/ quota.group tmp/
dev/ lost+found/ quota.user usr/ bin/ etc/
mnt/ root/ var/
boot/ home/ proc/ sbin/ vmlinuz
tigre:~>
tigre:~> pwd
/home/angel
tigre:~>
tigre:~> cd /etc
tigre:/etc>
tigre:/etc> ls
DIR_COLORS ftpconversions makedev.cfg
sendmail.st
HOSTNAME ftpgroups motd
services
NETWORKING ftpusers msgs/ shells
NNTP_INEWS_DOMAIN gateways mtab skel/
X11@ group mtools.conf
slip.hosts
XF86Config host.conf named/
slip.login
XF86Config.bak hosts named.boot
snooptab
XF86Config.orig hosts.allow named.boot.orig
ssh_config
tigre:/etc>
tigre:/etc> pwd
/etc
tigre:/etc>
tigre:~> cd /etc/skel/
tigre:/etc/skel>
tigre:/etc> cd skel/
tigre:/etc/skel>
leon:/etc/skel> cd ..
leon:/etc>
leon:/etc/skel> cd ../../
leon:/>
tigre:/etc> cd /home/angel
tigre:~>
cd -
leon:~> cd /etc
leon:/etc> cd /var/spool/mail
leon:/var/spool/mail> cd -
leon:/etc>
leon:~> cd /var/spool/mail
leon:/var/spool/mail> pushd .
/var/spool/mail /var/spool/mail
leon:/var/spool/mail> cd /etc
leon:/etc> pushd .
/etc /etc /var/spool/mail
leon:/etc> cd /var/adm/
leon:/var/adm> pushd .
/var/adm /var/adm /etc /var/spool/mail
leon:/var/adm> cd /mnt
leon:/mnt> dirs
/mnt /var/adm /etc /var/spool/mail
leon:/mnt> popd
/var/adm /etc /var/spool/mail
leon:/var/adm> popd
/etc /var/spool/mail
leon:/etc> popd
/var/spool/mail
leon:/var/spool/mail>
leon:~> mkdir documentos
leon:~> mkdir /home/angel/documentos2
leon:~> mkdir ~angel/documentos3
leon:~> mkdir prueba
leon:~>
leon:~/prueba> cd
leon:~> rmdir -p prueba1/prueba2/
leon:~> ls -a
./ .ctwmrc .history .lessrc foto/
prueba/
../ .fvwm2rc95 .less .steprc passwd.orig
leon:~>
leon:~> ls
foto/ passwd.orig prueba/
leon:~>
leon:~> ls -s
total 3
1 foto/ 1 passwd.orig 1 prueba/
leon:~>
leon:~> ls -l
total 3
drwxr-xr-x 10 angel users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 angel users 652 Sep 27 17:24
passwd.orig
drwx------ 2 angel users 1024 Jun 26 10:22 prueba/
leon:~> ls -las
total 75
2 drwx------ 4 foto users 2048 Sep 27
17:24 ./
1 drwxr-xr-x 5 root root 1024 Jul 9
19:34 ../
14 -rw------- 1 foto users 13228 Feb 19
1997 .ctwmrc
28 -rw------- 1 foto users 26779 Mar 8
1997 .fvwm2rc95
1 -rw------- 1 foto users 494 Sep 27
13:43 .history
1 -rw------- 1 foto users 34 Nov 24
1993 .less
1 -rw------- 1 foto users 114 Nov 24
1993 .lessrc
24 -rw------- 1 foto users 23270 Jul 24
13:05 .steprc
1 drwxr-xr-x 10 foto users 1024 Sep 27
17:22 foto/
1 -rw-r--r-- 1 foto users 652 Sep 27
17:24 passwd.orig
1 drwx------ 2 foto users 1024 Jun 26
10:22 prueba/
leon:~>
leon:~> ls /etc/h*
/etc/host.conf /etc/hosts.allow /etc/hosts.equiv
/etc/hosts /etc/hosts.deny /etc/hosts.lpd
leon:~>
leon:~> ls /etc/*.conf
/etc/host.conf /etc/ld.so.conf /etc/mtools.conf
/etc/syslog.conf
/etc/inetd.conf /etc/lilo.conf /etc/resolv.conf
/etc/yp.conf
leon:~>
leon:~> ls /etc/h????
/etc/hosts
leon:~>
leon:~> ls /etc/*.????
/etc/at.deny /etc/ld.so.conf /etc/named.boot.orig
/etc/host.conf /etc/lilo.conf /etc/resolv.conf
/etc/hosts.deny /etc/mtools.conf /etc/syslog.conf
/etc/inetd.conf /etc/named.boot /etc/yp.conf
leon:~>
-more-
cp -r
leon:~/prueba> cd
leon:~> ls
foto/ passwd.orig prueba/
leon:~> rm passwd.orig
leon:~> ls
foto/ prueba/
leon:~>
leon:~> ls -l
total 2
drwxr-xr-x 10 angel users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 angel users 78 Sep 29 09:13 prueba
leon:~>
leon:~> ls -l
total 2
drwxr-xr-x 10 angel users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 angel users 78 Sep 29 09:13 prueba
leon:~>
leon:~> chmod u=r,og=- prueba
leon:~> ls -l
total 2
drwxr-xr-x 10 angel users 1024 Sep 27 17:22 foto/
-r-------- 1 angel users 78 Sep 29 09:13 prueba
leon:~>
> exit
exit
leon:~> ls -lg
total 1
-rw-r--r-- 1 angel prueba 0 Oct 2 22:40 archivo
drwx------ 10 angel users 1024 Sep 27 17:22 foto/
leon:~>
leon:~> ls -l
total 3
-rw-r--r-- 2 angel users 89 Oct 3 11:38
duro
drwx------ 10 angel users 1024 Sep 27 17:22
foto/
-rw-r--r-- 2 angel users 89 Oct 3 11:38
prueba.txt
lrwxrwxrwx 1 angel users 10 Oct 3 21:46
suave -> prueba.txt
leon:~>
leon:~> ls -i
10718 duro 8524 foto/ 10718
prueba.txt 10719 suave@
leon:~>
leon:~> vi motd
Linux 2.0.27.
Linux 2.0.27.
Bienvenidos a mi maquina. Este mensaje aparecera cada vez
que un usuario entre a ella, una vez que lo vuelva a colocar en
/etc/motd. Un superusuario (root) podria ayudarme con eso.
Kawuabunga!!!!
Linux 2.0.27.
Bienvenidos a mi maquina. Este mensaje aparecera cada vez
que un usuario entre a ella, una vez que lo vuelva a colocar en
/etc/motd. Un superusuario (root) podria ayudarme con eso.
Kawuabunga!!!!
~
:w
Linux 2.0.27.
Bienvenidos a mi maquina. Este mensaje aparecera cada vez
que un usuario entre a ella, una vez que lo vuelva a colocar en
/etc/motd. Un superusuario (root) podria ayudarme con eso.
Kawuabunga!!!!
~
~
~
Wrote "motd" 6 lines, 211 characters
Linux 2.0.27.
Bienvenidos a mi maquina. Este mensaje aparecera cada vez
que un usuario entre a ella, una vez que lo vuelva a colocar en
/etc/motd. Un superusuario (root) podria ayudarme con eso.
Kawuabunga!!!!
~
:set number
1 Linux 2.0.27.
2 Bienvenidos a mi maquina. Este mensaje aparecera cada vez
3 que un usuario entre a ella, una vez que lo vuelva a colocar
en
4 /etc/motd. Un superusuario (root) podria ayudarme con eso.
5
6 Kawuabunga!!!!
1 Linux 2.0.27.
2 Bienvenidos a mi maquina. Este mensaje aparecera cada vez
3 que un usuario entre a ella, una vez que lo vuelva a colocar
en
4 /etc/motd. Un superusuario (root) podria ayudarme con eso.
5
6 Kawuabunga!!!!
~
:6 <ENTER>
1 Linux 2.0.27.
2 Bienvenidos a mi maquina. Este mensaje aparecera cada vez
3 que un usuario entre a ella, una vez que lo vuelva a colocar
en
4 /etc/motd. Un superusuario (root) podria ayudarme con eso.
5
6 Esto es Kawuabunga!!!!
/super <ENTER>
/^cadena
/cadena$
/\<cadena\>
/.aquina
/[a-z]*lla
:g/cadena-de-busqueda/s//cadena a reemplazar/g
:g/Kawuabunga/s//caramba/g
leon:~> ps
PID TTY STAT TIME COMMAND
6366 p0 S 0:01 -tcsh
6828 p0 R 0:01 ps
leon:~>
leon:~> ps -aux
USER PID %CPU %MEM SIZE RSS TTY STAT START TIME
COMMAND
angel 6366 0.0 9.8 1132 692 p0 S 07:29 0:01 -tcsh
angel 6954 0.0 5.1 824 364 p0 R 14:36 0:01 ps -
aux
angel 6955 0.0 3.8 792 268 p0 S 14:36 0:00 more
bin 52 0.0 4.3 796 304 ? S Sep 30 0:15
/usr/sbin/rpc.portmap
root 1 0.0 4.3 780 304 ? S Sep 30 0:07 init
[3]
root 2 0.0 0.0 0 0 ? SW Sep 30 0:00
(kflushd)
root 3 0.0 0.0 0 0 ? SW< Sep 30 0:00
(kswapd)
root 4 0.0 0.0 0 0 ? SW Sep 30 0:00
(nfsiod)
root 5 0.0 0.0 0 0 ? SW Sep 30 0:00
(nfsiod)
root 6 0.0 0.0 0 0 ? SW Sep 30
kill # proceso
leon:~> ps -x
PID TTY STAT TIME COMMAND
6366 p0 S 0:02 -tcsh
6957 p0 T 0:00 ftp localhost
6960 p0 R 0:01 ps -x
leon:~> kill 6957
leon:~> ps -x
PID TTY STAT TIME COMMAND
6366 p0 S 0:02 -tcsh
6961 p0 R 0:01 ps -x
leon:~> vi mensaje
echo "Este es un mensaje sin utilidad por pantalla"
leon:~> date
Sun Oct 5 20:22:54 GMT-4 1997
leon:~> at 2024 -f mensaje
Job 1 will be executed using /bin/sh
leon:~> atq
Date Owner Queue Job#
20:35:00 10/05/97 angel c 4
leon:~> date
Sun Oct 5 20:37:13 GMT-4 1997
leon:~> at 21:00 -f mensaje
Job 2 will be executed using /bin/sh
leon:~> atq
Date Owner Queue Job#
21:00:00 10/05/97 angel c 5
leon:~> atrm 5
leon:~> atq
leon:~>
set filec
leon:~> ls
leon:~> rmdir angel*
leon:~> ls
leon:~> mkdir angel{1,2,3,4}
leon:~> ls
leon:~> ls
leon:~> cat listado-archivos-etc
leon:~> cat mayusculas
leon:~> cat mensaje
leon:~> history
32 6:58 cat mayusculas
33 7:11 mkdir angel[1-4]
34 7:12 mkdir angel{1-4}
35 7:12 ls
36 7:13 mkdir angel{1,2,3,4}
37 7:13 ls
38 7:13 rmdir angel*
39 7:13 ls
40 7:13 mkdir angel{1,2,3,4}
41 7:13 ls
42 7:55 ls
43 7:55 cat listado-archivos-etc
44 7:55 cat mayusculas
45 7:55 cat mensaje
46 7:58 history
set history=20
leon:~> !?3
mkdir angel{1,2,3,4}
leon:~> !r
rmdir angel*
leon:~> !!
rmdir angel *
leon:~> !38
rmdir angel *
leon:~> !45:s/cat/rm
rm mensaje
leon:~> ^mensaje^mayusculas
rm mayusculas
leon:~> touch !^
touch mayusculas
leon:~> foreach i ( prueba1 archivo2 experimento )
foreach? touch $i
foreach? end
leon:~> ls
archivo2 experimento prueba1
leon:~>
leon:~> bg
[1] sleep 2000 &
leon:~>
leon:~> sleep 5000 <Ctrl-Z>
Suspended
leon:~> fg
sleep 5000
leon:~> jobs
[1] + Running sleep 2000
[2] Running sleep 5000
leon:~>
leon:~> stop %
leon:~> kill %2
leon:~> jobs
[1] + Running sleep 5000
[2] - Running sleep 5001
leon:~>
leon:~> telnet
telnet>
telnet> ?
Commands may be abbreviated. Commands are:
tigre login:
ftp> bin
200 Type set to I.
ftp> get angel.jpg
200 PORT command successful.
150 Opening BINARY mode data connection for angel.jpg
(8945 bytes).
226 Transfer complete.
8945 bytes received in 0.293 secs (30 Kbytes/sec)
ftp>
ftp> bin
200 Type set to I.
ftp> prompt
Interactive mode off.
ftp> mget *
local: alltags.html remote: alltags.html
200 PORT command successful.
150 Opening BINARY mode data connection for alltags.html (328520
bytes).
226 Transfer complete.
328520 bytes received in 0.717 secs (4.5e+02 Kbytes/sec)
local: angel.jpg remote: angel.jpg
200 PORT command successful.
150 Opening BINARY mode data connection for angel.jpg (8945
bytes).
226 Transfer complete.
8945 bytes received in 0.184 secs (48 Kbytes/sec)
ftp>
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> mput *
local: ./angel2.jpg remote: ./angel2.jpg
200 PORT command successful.
150 Opening BINARY mode data connection for ./angel2.jpg.
########
226 Transfer complete.
8945 bytes sent in 0.0108 secs (8.1e+02 Kbytes/sec)
ftp>
ftp> !
> who
angel ttyp0 Oct 8 20:48 (pantera.felinos.)
> exit
exit
ftp>
gzip -9 [archivo]