skip to main
|
skip to sidebar
Mittwoch, 18. November 2009
gzip -dc tarball.tar.gz|tar -xv ---option -c of gzip says not to delete the old file
Keine Kommentare:
Kommentar veröffentlichen
Neuerer Post
Älterer Post
Startseite
Abonnieren
Kommentare zum Post (Atom)
bits of knowledge of a sysadmin
Blog-Archiv
►
2013
(2)
►
Februar
(2)
►
2010
(33)
►
September
(1)
►
Juni
(3)
►
Februar
(24)
►
Januar
(5)
▼
2009
(274)
►
Dezember
(30)
▼
November
(102)
xsetroot -solid black
rpm --checksig; rpm -K
dhcpd.conf: shared-network {subnet {group { host }}}}
ex: %d ---delete all lines in a file
ex: 23,.m$ --move lines from 23 to the current lin...
pinfo
man -aw ls
man -d ls
when you get segmentation fault in yum: rm -f /var...
xorg.conf is missing: Xorg -configure :1
ex: := prints the total number of lines; :.= pri...
ex: 1,10# --display lines 1 to 10 and their respec...
for i in {0..110};do echo line $i;done
`xmonad --recompile` ---same as alt-q when xmonad ...
prevent overwrite of existing files: set -o noclob...
dd if=8.0-RELEASE-amd64-memstick.img of=/dev/da0 b...
tcpdump -i any
fedora installation mounts: /mnt/sysimage; /mnt/is...
nt: fsutil file createnew swap_device 536870912
distro upgrade: apt-get dist-upgrade; fedora: preu...
bash: repeat a command that contained foo ANYWHERE...
.bashrc: HISTFILE="~/.bash_history; HISTSIZE=10000
yum groupinstall "Moblin Desktop Environment"
vim: "1pu.u.u.u
winecfg; wine control; winefile; wine uninstaller;...
ports: dhcpd listens on UDP:67 and answers using U...
screen /dev/ttyS0
use output of one command as an argument of anothe...
reboot system every time user connects to the syst...
yum install yum-presto
grep 'a b' 44 ..
open file on the last line: vim + /var/log/message...
mysql_install_db --user=mysql; mysql_secure_instal...
Things to take with when going out:
chkconfig nscd on; nscd -i hosts; ipconfig /flushdns
for i in {1..19}; do echo $i; done
PS1="\u@\h:\w\$"
query rpm with the specified m5sum: rpm --fileid n...
output and error redirection: myprogram 1>messages...
check the openssl on local port 995: openssl s_cli...
view changes to default configuration: dovecot -n;...
escape characters: ^] for telnet; ^A for GNU Scree...
rpm --nomd5 --nopgp
list package requerements: rpm -qR bash
list only documentation files of a package: rpm -q...
list only configuration files of a package: rpm -q...
remove package: rpm -e glibc-devel
force installation: rpm -i foo.rpm --nodeps
freshen file (do not install if such package is no...
install foreign package: alien -i package.rpm
simulate package installation: apt-get -s; rpm --test
download, but do not install: apt-get -d
list all installed packages, or in the example onl...
list files in a package: dpkg -L pkg_name
gzip -dc tarball.tar.gz|tar -xv ---option -c of gz...
mysql: /etc/my.cnf: skip-networking
which package owns the file: rpm -qf /file ; pacma...
ssh: ssh-copy-id user@target-machine
C: .c -> preprocessing (including files, etc) .i -...
vim: c/phrase_down_to_which_change ---combine sear...
quota: apt-get install quota quotatool; vim /etc/f...
asterisk: asterisk -cvvv ---if you don't have star...
asterisk: asterisk -rvvv: module reload chan_sip; ...
selinux: touch /.autorelabel;reboot --- if you can...
yum grouplist; yum groupinfo "development tools"
rpm: rpm --root root_directory -vv
rpm: rpm --showrc; /usr/lib/rmp/rpmrc ---default g...
selinux: setsebool -P allow_httpd_anon_write=1 ..
selinux: selinux port -l
selinux: semanage port -a -p udp -t ssh_port_t 115
postmap /etc/aliases ---after editing the file
postconf alias_maps
getent passwd sergey; getent group wheel
ssh-agent screen ; ssh-agent startx
bash: eval `ssh-agent`
awk 'END {print NR }' /etc/group ---shows the numb...
awk -F: '{if ($4 && $4!=$1) print $1}' /etc/group
bash: enable -a ---shows enables built-in commands...
nt: ipconfig /displaydns |more ; ipconfig /flushdns
hostapd.conf ..
ifcfg-eth: ..
dhclient.conf: send-hostname "sergey"
slaptest
openssl rsa -in slapd-key -pubout>slapd-key.out
awk -F: '{print $1}' /etc/passwd ---the same as ...
arptables, ebtables (for ethernet), iptables (for ...
wireless bridge configuration: /etc/network/interf...
ls -d .* ---list only hidden files
ls -L ---show i on the linked file, rather than th...
ls -1 ---show only 1 file per line
ls -S ---sort by size
ls -Q ---quote names (GNU extension);
sed: sed '1 i this is first line' file ---adds lin...
mysql postinstall: set password for root@localhost...
mysql: select user,host from mysql.user;
mysql: mysqladmin -u root shutdown
slapd.conf: loglevel 296 --- -1 all loging informa...
postfix: postconf -e "mynetworks = 192.168.1.0/24,...
host -t mx mail.ru
postfix: postconf -e "relayhost = mailhub.example....
mutt: set folder="imaps://username@example.com" se...
ssh: Host is anything and hostname is the real name
►
Oktober
(12)
►
September
(22)
►
August
(12)
►
Juni
(8)
►
Mai
(5)
►
April
(81)
►
März
(1)
►
Februar
(1)
►
2008
(10)
►
November
(2)
►
Oktober
(3)
►
September
(2)
►
August
(1)
►
Mai
(2)
Über mich
Sergey Guzenkov
de,fr,en,pt,es
Mein Profil vollständig anzeigen
Keine Kommentare:
Kommentar veröffentlichen