17 Kasım 2015 Salı
Ram tuketimi
sistemin bellek kullanımı cpu/ram tarafından ayrıntılı ve anlık olarak
top
htop (yum install htop)
anlık ram kullanımı sorgulama
free -m
sistemlerdeki bellek kullanımı ile istatistikler
cat /proc/meminfo
Ram modeli, Ram kullanımı detaylı sorgulama
dmidecode –type memory
Swap kullanımı, Swap IN/OUT
Ram çok fazla kullanıldığında boşta ram kalmaz işletim sistemi verileri Ram den çekip diske atar yeniden kullanması gerektiğinde geri Ram e alır
ipcs -m
memory den reserve isteyen programlar
1 Eylül 2015 Salı
sifresiz ssh baglantisi icin yapilmasi gerekenler
[ayse@A ~]$ ls .ssh
id_rsa id_rsa.pub known_hosts
[ayse@A ~]$ ssh-copy-id -i .ssh/id_rsa.pub ayse@192.168.0.44
ayse@192.168.0.44's password:
Now try logging into the machine, with "ssh 'ayse@192.168.0.44'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
[ayse@A ~]$ ssh ayse@192.168.0.44
Last login: Tue Sep 1 09:34:39 2015 from ....
ayse$ logout
Connection to 192.168.0.44 closed.
[ayse@A ~]$ vi .ssh/config
buraya:
host 44
hostaname 192.168.0.44
user ayse
yazarak kaydediyoruz
[
ayse@A ~]$ ssh 44
Bad owner or permissions on /home/ayse/.ssh/config
[ayse@A ~]$ chmod 600 .ssh/config
[ayse@A ~]$ ssh 44
6 Ağustos 2015 Perşembe
git commit
$git status
On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: category-application.log
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
$git add <filename>
$git commit -a -m "aciklama bilgisi"
master 0f8b9fe] application log updated
1 files changed, 1 insertions(+), 1 deletions(-)
$git push origin master
Counting objects: 5, done.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 338 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
29 Temmuz 2015 Çarşamba
wireshark kurulumu ve symbol lookup error
CentOS 6.5 icin kurulum ;
root olunur
# yum install wireshark-gnome
# wireshark
hata ile karsilasilirsa ;
centos 6.5: wireshark: symbol lookup error: wireshark: undefined symbol: gtk_combo_box_text_new_with_entry
gibi
cozum:
#yum update gtk2
# rpm -qa | grep wireshark
wireshark-devel-1.8.10-8.el6_6.x86_64
wireshark-gnome-1.8.10-8.el6_6.x86_64
wireshark-1.8.10-8.el6_6.x86_64
root olunur
# yum install wireshark-gnome
# wireshark
hata ile karsilasilirsa ;
centos 6.5: wireshark: symbol lookup error: wireshark: undefined symbol: gtk_combo_box_text_new_with_entry
gibi
cozum:
#yum update gtk2
# rpm -qa | grep wireshark
wireshark-devel-1.8.10-8.el6_6.x86_64
wireshark-gnome-1.8.10-8.el6_6.x86_64
wireshark-1.8.10-8.el6_6.x86_64
23 Temmuz 2015 Perşembe
netcat command
To install netcat on a CentOS system (64bit), simply issue the following command: yum install nc.x86_64
#yum install nc.x86_64
Basic syntax of netcat :
usage: nc [-46bCDdhjklnrStUuvZz] [-I length] [-i interval] [-O length] [-P proxy_username] [-p source_port] [-q seconds] [-s source] [-T toskeyword] [-V rtable] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port]
#yum install nc.x86_64
Basic syntax of netcat :
usage: nc [-46bCDdhjklnrStUuvZz] [-I length] [-i interval] [-O length] [-P proxy_username] [-p source_port] [-q seconds] [-s source] [-T toskeyword] [-V rtable] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port]
7 Temmuz 2015 Salı
eth1 interface'inde trafik kontrol islemi
~ vnstat -l -i eth1
Monitoring eth1... (press CTRL-C to stop)
rx: 8.32 Mbit/s 1430 p/s tx: 0 kbit/s 0 p/s
26 Haziran 2015 Cuma
mysqldump ile veritabanı yedeği
Veritabanı yedeği;
mysqldump -u=[Kullanıcı adı] -p=Şifre Veritabanı>[yedeklenmiş ismi].sql
komut satırından işlemler:
ayse veritabanındaki tabloları listeler
mysql -u userA -p$PASS ayse -e "show tables"
Aşağıdaki komut ayse veritanındaki test tablosunu export'unu alır.
(Data + schema export for specific table)
mysqldump -u userA -p$PASS ayse test > /tmp/`date "+%Y%m%d-"`ayse .test .sql
Kontrol işlemi:
ls -alt /tmp/20150630-ayse .test .sql
Kaydol:
Kayıtlar (Atom)