You are on page 1of 9

Comandos YUM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

zmore paquete.tar.gz
zenity --calendar
yum remove paquete
yum install firefox
yum -y upgrade
yes
xorgconfig
xkill
xhost +192.168.0.162
xclock
whoami

37

useradd -c "Benito Juarez" benito; passwd benito

38
39
40

urpmi mysql
urpme paquete
urlview index.php

who -b [Artculo relacionado]


who -b
which iptables
whereis iptables
wget -c http://ejemplo.com/distro-dvd.iso [Artculo relacionado]
wget --limit-rate=40k http://www.ejemplo.com/file.rpm
wc -l archivo [Artculo relacionado]
wc -L /home/andy/reporte
warnquota [Artculo relacionado]
wall HOLA
w
vncviewer 192.168.0.162:1
vncserver -kill :1
vncserver
vncpasswd
vmstat 5 10

[Artculo relacionado]
vi /etc/ssh/sshd_config [Artculo relacionado]
vi +10 /home/sergio/reporte [Artculo relacionado]
vi +/id /etc/inittab [Artculo relacionado]
visudo

users

[Artculo relacionado]
userdel usuario [Artculo relacionado]
userdel -r bill [Artculo relacionado]
usermod -l juanp perezj

useradd -s /sbin/nologin tomas

relacionado]

[Artculo

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

uptime [Artculo relacionado]


updatedb
up2date -u
units -t '5miles' 'kilometers'
uniq reporte
uname -a [Artculo relacionado]
unalias p
umount /usb
umask
tzselect
tty
traceroute linuxtotal.com.mx
touch -t 9601040930 test
touch -c -t 0808292050 reporte
top -n 1 > top.txt
top [Artculo relacionado]
time comando
tidy /var/www/html/index.html
tar tvzf respaldo.tar.gz
tar jvxf reporte.tar.bz2 [Artculo relacionado]
tar cf - . | (cd /usr/backups/; tar xfp -) [Artculo
tar -cvzf /dev/st0 /home
tailf /var/log/squid/access.log
tail -f /var/log/messages
tail -20 archivo
tac /etc/passwd
swapon -s

relacionado]

sudo -l [Artculo relacionado]


su su
strings /sbin/iptables
stat /etc/fstab
startx

[Artculo relacionado]

ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
ss -ln
ss -a
sort /etc/passwd
smbtree
smbstatus
smbpasswd -a mario
smbmount //winpc/publico /win
smbclient -L //winhost
shutdown -r 23:15
shutdown -h now

[Artculo relacionado]

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128

shutdown -h +30
showmount
shasum /etc/samba/smb.conf
sha1sum /etc/squid/squid.conf
sftp 192.168.0.201
set -o noclobber
set
sestatus

[Artculo relacionado]
service mysqld status [Artculo relacionado]
service httpd start [Artculo relacionado]
service sshd stop

seq 2 2 50
seq 1 100
script.sh > /dev/null &
screen [Artculo relacionado]
scp /etc/samba/* 192.168.1.10:/etc/samba/.
runlevel
rpmverify -lv samba | more
rpm -ql paquete
rpm -qa | grep php
rpm -qa
rpm -ivh paquete.rpm
rpm -i --nodeps paquete.rpm
route add default gw 192.168.0.1
route
rmdir reportes
rm -rf dir/*
rev archivo.txt
resolveip www.linuxtotal.com.mx
repquota /home [Artculo relacionado]
recode iso-8859-1..utf8 index.php
reboot
rdesktop -u windows_usuario -p windows_password winhost
quota -u ana [Artculo relacionado]
pwunconv [Artculo relacionado]
pwconv [Artculo
pwck
pstree -p

relacionado]

[Artculo relacionado]
PS1='(\t)[\W]\$> ' [Artculo relacionado]
PS1='(\t)[\u-\W]\$> ' [Artculo relacionado]
pstree

ps -eo pcpu,user,pid,cmd | sort -r | head -6


ps -ef [Artculo relacionado]
ps -e -o pid,args --forest

[Artculo relacionado]

[Artculo relacionado]

129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172

pkill -9 -t pts/2 [Artculo


ping -i 3 10.0.0.100
ping -c5 192.168.0.1
pdbedit -Lv sergio
pdbedit -a -u sergio
paste reporte1 reporte2

relacionado]

passwd -u ana [Artculo relacionado]


passwd -l ana [Artculo relacionado]
ntpdate -u 0.mx.pool.ntp.org
nstat
nslookup www.linuxtotal.com.mx
nohup firefox
nmblookup -A 192.168.0.162
nl /etc/passwd
nice -n -5 cp /etc/* /bkp/etc/*
netstat -ua
netstat -r

[Artculo relacionado]

netstat -nat [Artculo relacionado]


netstat -i
mysqldump ventas -u root -p > ventas.sql
mysqlcheck --all-databases
mysqlanalyze -c clientes -u root -p
mysqladmin variables -u root -p
mysqladmin create midatabase
mysql
mv archivo dir/archivo1
mv archivo archivo1
mtools
mt -f /dev/st0 rewind
mount -t vfat /dev/sda1 /usb [Artculo relacionado]
mount -t iso9660 /dev/cdrom /mnt/cdrom
mount [Artculo relacionado]
more /etc/passwd
modprobe -l
mkpasswd -l 16 [Artculo relacionado]
mkdir -p /home/sergio/documentos/2008/enero
mformat a:
md5sum /etc/squid/squid.conf
mcedit
mc
man -k cron
lynx www.linuxtotal.com.mx
lsusb
lspci -v

[Artculo relacionado]

173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216

lspci -tv
lsof | grep firefox
lsof -n -i:22

[Artculo relacionado]
ls | wc -l [Artculo relacionado]
lsmod

ls | cat -n
ls /etc | pr -T8
ls /etc | pr -T7
ls -lZ
ls -lt
ls -lS
ls -lR /etc > contenido_etc
ls -lh
ls -la
ls -1
look referencia
lokkit
logout
locate iptables
locale [Artculo relacionado]
lnstat
ln -sf /dev/hdc /dev/cdrom
ln -s /etc/inittab inicio
ll
less reportes/mayo2008.txt
ldd /usr/bin/mysql
lastlog
lastb
last reboot
kudzu
konqueror
kill -l
kill %1
kate

[Artculo relacionado]
[Artculo relacionado]

jobs [Artculo relacionado]


iwspy eth1
iwlist eth1 scan
iwlist eth0 scanning
iwconfig eth1 essid "mired"
isoinfo -l -i imagen.iso
iptraf
iptables-save > iptables.txt
iptables-restore < iptables.txt
iptables -L -t nat

217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260

iptables -L -n --line-numbers
iptables -F; iptables -F -t nat; iptables -F -t mangle
iptables -A INPUT -p tcp --dport 22 -j REJECT
ipcs
ipcount 192.168.0.0/28
ipcalc -pn 192.168.0.100 255.255.255.192
ip link show
inkscape

[Artculo relacionado]

init 6 [Artculo relacionado]


init 0 [Artculo relacionado]
ifstat
ifconfig eth0 up
ifconfig eth0 promisc
ifconfig eth0 hw ether 11:22:33:44:FF:AA
ifconfig eth0 down
ifconfig eth0 192.168.0.10 netmask 255.255.255.128
ifconfig eth0 -promisc
id sergio
id

[Artculo relacionado]
[Artculo relacionado]
hwclock [Artculo relacionado]
hwclock --systohc
hwclock --hctosys

htpasswd -c /var/www/passlist sergio


htmlview www.linuxtotal.com.mx
hostname
hostid
host google.com
history | wc -l
history -c [Artculo
help
head -15 archivo
hdparm -Iv /dev/sdb
hdparm -i /dev/sda
halt

relacionado]

gzip -d reportes.gz
groups

[Artculo relacionado]

groupadd admin [Artculo relacionado]


grep bogomips /proc/cpuinfo
grep -v "^#" /etc/inittab [Artculo relacionado]
grep -r --color "reporte" /respaldos/*
gpg reporte.txt.gpg
gpg -c reporte.txt
gpasswd grupo
gethostip google.com

261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304

gedit
gawk -F: '{print $1}' /etc/passwd
fuser http/tcp -v

[Artculo relacionado]

free -m [Artculo relacionado]


fortune [Artculo relacionado]
finger usuario
finger -s ana
find /var/www -name '*.php' | wc -l
find /home -size +10000k
find
find
find
file

/ -perm -4000 -ls [Artculo relacionado]


/ -name "*.mp3"
. -type f -name "*.txt" -print | xargs rm
/etc/samba/smb.conf

fdisk -l [Artculo relacionado]


fc -l
expr 8 + 4
exit
ethtool -p eth0 5
ethtool -i eth0
etherwake 11:22:33:AA:BB:CC
env | grep $PATH
env
eject -r
eject -f
edquota -u user
echo $PATH

[Artculo relacionado]

echo $((2 + 2)) [Artculo relacionado]


echo "192.168.1.100 host" > /etc/hosts
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
echo "(12898 + 1233.5) * 765667 -789.323" | bc -l
du /home
du -s /home
du -s * | sort -k1,1rn | head
dpkg -l
dmidecode
dmesg > boot.txt
dmesg
dig www.linuxtotal.com.mx
diff3 arch1 arch2 arch3
diff reporte1 reporte2
df -i
df -h
ddate [Artculo relacionado]
date 0508223008 [Artculo relacionado]

305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339

date -d mon [Artculo relacionado]


date --date='20 Jul'
cut -d":" -f1 /etc/passwd | sort

340

awk '$3 >= 500 {print $1, $5 }' FS=":" /etc/passwd

341
342
343
344
345
346
347

at 19:00
arping 192.168.1.10
arp -a
apt-get install gimp
apropos rpm
alias p="ps -ef | more"
alias

cut -d":" -f1 /etc/passwd [Artculo relacionado]


curl www.linuxtotal.com.mx > archivo
cp -r /dir1 /dir2
cp -p /etc/inittab /home/sergio/.
cmp reporte1 reporte2
clear
chpasswd passwords.txt

[Artculo relacionado]
chmod u+w,g+x archivo [Artculo relacionado]
chmod -R 755 /var/www/html/* [Artculo relacionado]
chkconfig --list | grep smb [Artculo relacionado]
chkconfig --list [Artculo relacionado]
chkconfig --level 35 smb on [Artculo relacionado]
chgrp admon reporte01 [Artculo relacionado]
chown juan.juan reporte

chcon -t samba_share_t /usr/publico


chattr -i reporte.txt
chattr +i reporte.txt
chage -E 2008-05-24 andy [Artculo relacionado]
chage -E -1 andy [Artculo relacionado]
cd ~
cd cd
cat archivo1 archivo2 > archivo3
cat /etc/sysconfig/network
cat
cat
cat
cat
cal
cal
cal

/etc/issue [Artculo
-s clientes.php
-n archivo
-b /etc/inittab
2008
10 1992
-3

basename /usr/local/bin

relacionado]

relacionado]

[Artculo relacionado]
[Artculo

348 (cd /home && ls > reporte)


349 (cd /etc && ls)
350 !88

You might also like