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
3 Mayıs 2015 Pazar
MySQL: yeni kullanıcı yaratma
mysql> GRANT ALL PRIVILEGES ON *.* TO 'kullaniciadi'@'%' IDENTIFIED BY 'sifre';
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
@'%' ifadesi herhangi bir ip adresinden bağlanılabileceğini ifade eder,
eğer sadece belirli bir ip adresine izin verilmek isteniyorsa % yerine ip adresi girilmelidir.
Query OK, 0 rows affected (0.04 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
@'%' ifadesi herhangi bir ip adresinden bağlanılabileceğini ifade eder,
eğer sadece belirli bir ip adresine izin verilmek isteniyorsa % yerine ip adresi girilmelidir.
Linux: kullanıcı işlemleri
kullanıcı ekleme
--- kullanıcı ekleme işlemi root user'ında iken yapılmalı
[root@Ayse ~]# useradd -m testuser
[root@Ayse ~]# ls /home/
lost+found pythonuser test testuser
[root@Ayse ~]# id testuser
uid=504(testuser) gid=504(testuser) groups=504(testuser)
kullanıcı şifre atama
# passwd <testuser>
herhangi bir kullanıcı belirtmeden passwd komutu çalıştırılırsa aktif olan kullanıcının şifresi değiştirilir
mevcut kullanıcı bilgileri görüntüleme
[root@Ayse ~]# cat /etc/passwd
mevcut kullanıcı bilgileri düzenleme:
# vipw
Kaydol:
Kayıtlar (Atom)