Sunteți pe pagina 1din 52

Linux 2.0.27 (leon.felinos.

ve) (ttyp0)

leon login: angel

Password:

Last login: Fri Sep 26 22:37:46 from tigre.felinos.ve


Linux 2.0.27.
angel has logged on ttyp0 from pantera.
leon:~>

leon:~>exit
tigre:~> passwd

Changing password for angel


Enter old password:

Enter new password:

Re-type new password:

Password changed.
tigre:~>

man [comando]

tigre:~> man passwd

PASSWD(1) Linux Programmer's Manual


PASSWD(1)

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 one and two argument forms may only be used by


the
superuser. Using the one argument form, the superuser
may
change the password for that user. The superuser is
not
asked for the users old password, and the rules for
proper
legitimate reasons to choose a non-conformant password.

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.

Giving an empty string as the second argument erases the


password for the user.

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.

Peter Orbaek (poe@daimi.aau.dk)

Linux 1.2 22 June 1994


1








tigre:~> man 2 mount

tigre:~> man 8 mount

tigre:~> man -k rename


mren (1) - rename an existing MSDOS file
mv (1) - rename files
rename (2) - change the name or location of a file
rename (3tcl) - Rename or delete a command
XSetWMName, XGetWMName, XStoreName, XFetchName (3x) - set or
read a window's WM_NAME property
tigre:~>
man -k [comando]

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:~> rmdir documentos


leon:~> rmdir /home/foto/documentos2
leon:~> rmdir ~foto/documentos3
leon:~>

leon:~> mkdir prueba1


leon:~> cd prueba1/
leon:~/prueba> mkdir prueba2

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-

leon:/etc> more inetd.conf


# See "man 8 inetd" for more information.
#
# If you make changes to this file, either reboot your machine
or send the
# inetd a HUP signal:
# Do a "ps x" as root and look up the pid of inetd. Then do a
# "kill -HUP <pid of inetd>".
# The inetd will re-read this file whenever it gets that signal.
#
# <service_name> <sock_type> <proto> <flags> <user>
<server_path> <args>
#
echo stream tcp nowait root internal
echo dgram udp wait root internal
discard stream tcp nowait root internal
discard dgram udp wait root internal
daytime stream tcp nowait root internal
daytime dgram udp wait root internal
chargen stream tcp nowait root internal
chargen dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
#
# These are standard services.
--More--(17%)

# These are standard services.


/rlogin
...skipping
#
shell stream tcp nowait root /usr/sbin/tcpd in.rshd
-L
login stream tcp nowait root /usr/sbin/tcpd
in.rlogind
# exec stream tcp nowait root /usr/sbin/tcpd
in.rexecd
# talk dgram udp wait root /usr/sbin/tcpd in.talkd
#ntalk dgram udp wait root /usr/sbin/tcpd in.talkd
#
# Kerberos authenticated services
#
# klogin stream tcp nowait root /usr/sbin/tcpd
rlogind -k
# eklogin stream tcp nowait root /usr/sbin/tcpd
rlogind -k -x
# kshell stream tcp nowait root /usr/sbin/tcpd
rshd -k
#
# Services run ONLY on the Kerberos server
#
# krbupdate stream tcp nowait root /usr/sbin/tcpd
registerd
# kpasswd stream tcp nowait root /usr/sbin/tcpd
kpasswdd
#
# Pop et al
#
# pop2 stream tcp nowait root /usr/sbin/tcpd in.pop2d
--More--(57%)

leon:/etc> cat /etc/passwd


root:XkWExN0RX5KaM:0:0:root:/root:/bin/bash
bin:*:1:1:bin:/bin:
daemon:*:2:2:daemon:/sbin:
adm:*:3:4:adm:/var/adm:
lp:*:4:7:lp:/var/spool/lpd:
sync:*:5:0:sync:/sbin:/bin/sync
shutdown:*:6:0:shutdown:/sbin:/sbin/shutdown
halt:*:7:0:halt:/sbin:/sbin/halt
mail:*:8:12:mail:/var/spool/mail:
news:*:9:13:news:/usr/lib/news:
uucp:*:10:14:uucp:/var/spool/uucppublic:
operator:*:11:0:operator:/root:/bin/bash
games:*:12:100:games:/usr/games:
man:*:13:15:man:/usr/man:
postmaster:*:14:12:postmaster:/var/spool/mail:/bin/bash
nobody:*:65534:100:nobody:/dev/null:
ftp:*:404:1::/home/ftp:/bin/bash
guest:*:405:100:guest:/dev/null:/dev/null
+foto::::::
+jose::::::
leon:/etc>

leon:/etc> tail /etc/inetd.conf


netbios-ns dgram udp wait root /usr/sbin/nmbd
nmbd
#
# Sun-RPC based services.
# <service
name/version><sock_type><rpc/prot><flags><user><server><args>
#
# rstatd/1-3 dgram rpc/udp wait root /usr/sbin/tcpd
rpc.rstatd
# rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd
rpc.rusersd
# walld/1 dgram rpc/udp wait root
/usr/sbin/tcpd rpc.rwal
ld
#
# End of inetd.conf.
leon:/etc>

leon:~> cp /etc/passwd ~angel


leon:~>

leon:~> cp -r /etc ~angel


cp: /etc/inet: cannot copy cyclic symbolic link
cp: /etc/syslog.conf: Permission denied
cp: /etc/rmt: Permission denied
cp: /etc/psdevtab: Permission denied
leon:~> ls
etc/ passwd prueba/
leon:~>

cp -r

leon:~> mv passwd passwd.orig


leon:~> ls
etc/ passwd.orig prueba/
leon:~>
leon:~> mv etc/ prueba/
leon:~> cd prueba
leon:~/prueba> ls
etc/
leon:~/prueba>

leon:~/prueba> cd
leon:~> ls
foto/ passwd.orig prueba/
leon:~> rm passwd.orig
leon:~> ls
foto/ prueba/
leon:~>

leon:~> rm -rf prueba/


leon:~> ls

leon:~> cat > prueba

Esta es una prueba del uso de cat como un editor


simple. Espero que sea util.
leon:~> ls
foto/ prueba
leon:~> cat prueba
Esta es una prueba del uso de cat como un editor
simple. Espero que sea util.
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:~>

chmod [cadena(s) de acceso archivo(s)]

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:~>

leon:~> chmod g+wr prueba


leon:~> ls -l
total 2
drwxr-xr-x 10 angel users 1024 Sep 27 17:22 foto/
-r--rw---- 1 angel users 78 Sep 29 09:13 prueba
leon:~>

leon:~> chmod -R go-xr foto/


leon:~> ls -l
total 2
drwx------ 10 angel users 1024 Sep 27 17:22 foto/
-r--rw---- 1 angel users 78 Sep 29 09:13 prueba
leon:~>

leon:~> chmod 460 prueba


leon:~> ls -l
total 2
drwx------ 10 angel users 1024 Sep 27 17:22 foto/
-r--rw---- 1 angel users 78 Sep 29 09:13 prueba
leon:~>

leon:~> touch miarchivo


leon:~> ls -l
total 1
drwx------ 10 angel users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 angel users 0 Sep 30 07:29
miarchivo

leon:~> newgrp prueba

> chgrp prueba miarchivo


> exit
leon:~> ls -l
total 1
drwx------ 10 foto users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 foto prueba 0 Sep 30 07:29 miarchivo
leon:~>

chown [propietario archivo (s)]


leon:/home/angel# ls -l
total 1
drwx------ 10 angel users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 angel users 0 Oct 2 22:35 prueba
leon:/home/foto# chown jose prueba
leon:/home/foto# ls -l
total 1
drwx------ 10 angel users 1024 Sep 27 17:22 foto/
-rw-r--r-- 1 jose users 0 Oct 2 22:35 prueba
leon:/home/foto#

leon:~> touch archivo


leon:~> ls -l
total 1
-rw-r--r-- 1 angel users 0 Oct 2 22:40 archivo
drwx------ 10 angel users 1024 Sep 27 17:22 foto/

leon:~> newgrp prueba

> chgrp prueba archivo

> 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:~> cat > prueba.txt


Esta es una prueba de lo que puede pasar
al enlazar un archivo utilizando ln -s y ln -h
(^D)
leon:~> ls -s
total 2
1 foto/ 1 prueba.txt
leon:~>

leon:~> ln prueba.txt duro

leon:~> ln -s prueba.txt suave

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:~> cp /etc/motd ~angel

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

sort muy-grande > ordenado &

sort muy-grande1 > ordenado1 &


sort muy-grande2 > ordenado2 &
sort muy-grande3 > ordenado3 &

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:~> ftp localhost &


[1] 6957
leon:~> Connected to localhost.
220 leon FTP server (Version wu-2.4(1) Tue Dec 5 20:51:15 CST
1995) ready.
Name (localhost:angel):
[1] + Suspended (tty input) ftp localhost

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

[1] Terminated ftp localhost

leon:~> ps -x
PID TTY STAT TIME COMMAND
6366 p0 S 0:02 -tcsh
6961 p0 R 0:01 ps -x

at [hora] [dia] [archivo de comandos]

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

New mail for angel@leon has arrived:


----
From: Angel Negro <angel@leon.felinos.ve>
Subject: Output from your job c0000400decbc3

Este es un mensaje sin utilidad por pantalla


----

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:~>

leon:~> ps -aux | grep angel


angel 8033 3.5 9.4 1124 664 p0 S 05:58 0:01 -tcsh
angel 8039 0.0 5.1 824 364 p0 R 05:58 0:01 ps -
aux
angel 8040 0.0 4.3 868 304 p0 S 05:58 0:00 grep
angel
leon:~>

leon:~> ps -aux | grep angel | grep -v "grep"|grep -v "ps"


angel 8033 0.4 9.5 1124 672 p0 S 05:58 0:01 -tcsh
leon:~>
leon:~> date ; ls /etc| wc -l
Mon Oct 6 06:10:34 GMT-4 1997
82
leon:~>

leon:~> (date ; ls /etc) | wc -l


83
leon:~>

leon:~> ( echo "En el directorio raiz hay" ; ls / | wc -l ; echo


"archivos y ocupan el siguiente espacio:" ; df )

leon:~> echo "En el directorio raiz hay" ; (ls / | wc -l) ; echo


"archivos y ocupan el siguiente espacio:" ; df

leon:~> ls /etc|wc -l >~/listado-archivos-etc


leon:~> cat ~/listado-archivos-etc
82
leon:~>

leon:~> cat /etc/passwd|wc -l > ~/listado-archivos-etc


leon:~> cat ~/listado-archivos-etc
20

leon:~> echo "Hay 20 lineas en mi archivo ahora" >> ~/listado-


archivos-etc
leon:~> cat ~/listado-archivos-etc
20
Hay 20 lineas en mi archivo ahora
leon:~>
leon:~> wc -l <~/listado-archivos-etc
2
leon:~>

leon:~> cat ~/listado-archivos-etc


20
Hay 20 lineas en mi archivo ahora
leon:~> tr a-z A-z < ~/listado-archivos-etc >mayusculas
leon:~> cat mayusculas
20
HAY 20 LINEAS EN MI ARCHIVO AHORA
leon:~>

leon:~> cat may <TAB>


leon:~> cat mayusculas <ENTER>
20
HAY 20 LINEAS EN MI ARCHIVO AHORA
leon:~>

set filec

Set fignore = (.o *.bak)


leon:~> mkdir angel[1-4]
mkdir: No match.
leon:~>

leon:~> mkdir angel{1,2,3,4}


leon:~> ls
angel1/ angel4/ mensaje
angel2/ listado-archivos-etc
angel3/ mayusculas
leon:~>

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:~> rmdir angel*

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:~> alias cls clear


leon:~> alias h history
leon:~> h
1 23:02 ls
2 23:02 rm listado-archivos-etc
3 23:02 rm mayusculas
4 23:02 ls
5 23:02 clear
6 23:03 foreach i ( prueba1 archivo2 experimento )
7 23:03 foreach i ( prueba1 archivo2 experimento )
8 23:03 ls
9 23:14 alias cls clear
10 23:14 alias h history
11 23:14 h
leon:~>

leon:~> ps -aux | grep in.inetd | grep -v grep


root 54 0.0 4.7 780 336 ? S Sep 30 0:02
/usr/sbin/inetd
leon:~>

leon:~> ps -aux `cat /var/run/inetd.pid`


USER PID %CPU %MEM SIZE RSS TTY STAT START TIME
COMMAND
root 54 0.0 4.7 780 336 ? S Sep 30 0:02
/usr/sbin/inetd
leon:~>

leon:~> sleep 2000 <Ctrl-Z>


Suspended
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 %

[1] + Suspended (signal) sleep 2000


leon:~>

leon:~> kill %2

[2] Terminated sleep 5000


leon:~>
leon:~> jobs
[1] + Suspended (signal) sleep 2000
leon:~>

leon:~> kill %sleep

[1] Terminated sleep 2000


leon:~>

leon:~> jobs
[1] + Running sleep 5000
[2] - Running sleep 5001
leon:~>

leon:~> kill %?01


leon:~>
[2] Terminated sleep 5001
leon:~>
leon:~>telnet tigre.felinos.ve
tigre login: angel
Password:
Last login: Wed Oct 8 08:52:42 from leon.felinos.ve
Linux 2.0.27.
tigre:~>

leon:~> telnet
telnet>

telnet> ?
Commands may be abbreviated. Commands are:

close close current connection


logout forcibly logout remote user and close the connection
display display operating parameters
mode try to enter line or character mode ('mode ?' for more)
open connect to a site
quit exit telnet
send transmit special characters ('send ?' for more)
set set operating parameters ('set ?' for more)
unset unset operating parameters ('unset ?' for more)
status print status information
toggle toggle operating parameters ('toggle ?' for more)
slc change state of special charaters ('slc ?' for more)
z suspend telnet
environ change environment variables ('environ ?' for more)
? print help information
telnet>

telnet> open tigre


Trying 192.168.1.2...
Connected to tigre.felinos.ve.
Escape character is '^]'.

Linux 2.0.27 (tigre.felinos.ve) (ttyp0)

tigre login:

leon:~> rlogin tigre


Password:
Last login: Wed Oct 8 08:53:12 from leon.felinos.ve
Linux 2.0.27.
tigre:~>

leon:~> rlogin tigre -l mendez


Password:
leon:~> ftp tigre
Connected to tigre.felinos.ve.
220 tigre FTP server (Version wu-2.4(1) Tue Dec 5 20:51:15 CST
1995) ready.
Name (tigre:angel): angel
331 Password required for angel.
Password:
230 User angel logged in.
ftp>
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 339
drwxr-xr-x 2 angel users 1024 Oct 8 21:18 .
drwxr-xr-x 10 root root 1024 Oct 8 08:52 ..
-rw------- 1 angel users 328 Oct 8 21:14 .history
-rw-r--r-- 1 angel users 34 Nov 24 1993 .less
-rw-r--r-- 1 angel users 114 Nov 24 1993 .lessrc
-rw-r--r-- 1 angel users 17 Oct 8 09:53 .rhosts
-rw-rw-r-- 1 angel users 328520 Oct 8 21:17 alltags.html
-rw-rw-r-- 1 angel users 8945 Oct 8 21:18 angel.jpg
226 Transfer complete.
ftp>

ftp> get alltags.html


200 PORT command successful.
150 Opening ASCII mode data connection for alltags.html
(328520 bytes).
226 Transfer complete.
331704 bytes received in 1.62 secs (2e+02 Kbytes/sec)

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> lcd ~angel/fotos


Local directory now /home/angel/fotos
ftp> bin
200 Type set to I.
ftp> put angel2.jpg
200 PORT command successful.
150 Opening BINARY mode data connection for angel2.jpg.
226 Transfer complete.
8945 bytes sent in 0.0116 secs (7.5e+02 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]

tar [opciones] [archivo]

tar cvf respaldo1.tar /home/angel

tar xvf [archivo.tar]


tar tvf [archivo.tar]

leon:~> grep -c ftp /etc/services


3
leon:~>

leon:~> ps -aux | grep angel


angel 13264 0.3 10.0 1132 704 p0 S 09:17 0:01 -tcsh
angel 13297 2.8 6.2 844 436 p0 T 09:24 0:00 ftp tigre
angel 13299 0.0 5.1 824 364 p0 R 09:24 0:01 ps -aux
angel 13300 0.0 4.3 868 304 p0 S 09:24 0:00 grep angel
leon:~>

leon:~> man -k rename|grep files


mv (1) - rename files
mv (1) - rename files
leon:~>

find directorios-de-busqueda-de-inicio criterios-de-busqueda-y-


acciones

leon:~> find ~angel -name "*.jpg" -print


/home/angel/angel.jpg
/home/angel/fotos/angel2.jpg
leon:~>
leon:~> find ~angel -name "*" -atime -2 -print
/home/angel
/home/angel/X_COURSE.TGZ
/home/angel/alltags.html
/home/angel/angel.jpg
/home/angel/fotos
/home/angel/fotos/angel2.jpg
leon:~>

leon:~> find ~angel -size +100 -exec ls -ls {} \;


139 -rw-rw-r-- 1 angel users 140580 Oct 8 20:59
/home/angel/X_COURSE.TGZ
324 -rw-rw-r-- 1 angel users 328520 Oct 8 21:06
/home/angel/alltags.html
leon:~>

leon:~> find ~angel -size +100 -print -exec rm {} \;


/home/angel/X_COURSE.TGZ
/home/angel/alltags.html
leon:~>

S-ar putea să vă placă și