29 Ekim 2018 Pazartesi

configure Script'i

Giriş
Linux dünyasında bazı uygulamaları kendimiz derleriz. Bunun icin configure ve make komutları kullanılır. configure bir komut olmadığı için man yardımı yok. Açıklaması şöyle.
The configure script is a script that will configure the software that it was distributed with for compilation (if applicable) and installation.

These scripts are often (as in this case) created by GNU autoconf (a tool used by developers specifically for creating portable configure scripts), which means that it will have at least a minimum of a certain set of options.
Çalıştırma İzni
Eğer configure dosyası için çalıştırma hakkı yoksa şöyle yaparız.
chmod +x configure
Örnek
Şöyle yaparız.
$ ./configure 
$ make
--help seçeneği
Şöyle yaparız.
$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']
--prefix seçeneği
Kurulum yeri /usr olsun istersek şöyle yaparız.
configure --prefix=/usr
make all
make install


25 Ekim 2018 Perşembe

/var/log/auth.log Dosyası

Giriş
Bu dosya authentication log file başlığı altında girer. İşletim sistemine göre farklılık gösterir. Açıklaması şöyle.
Logging in attempts successful and unsuccesful are logged in /var/log/auth.log
CentOS'ta /var/log/secure dosyasıdır.

Debian ve Ubuntu'da /var/log/auth.log dosyasıdır. Bu dosyaya bakarak ssh saldırılarını görmek mümkün.


17 Ekim 2018 Çarşamba

cd komutu

Eksi Karakteri
Dosya ismi eksi karakteri ile başlıyorsa şöyle yaparız.
cd -- -78059735/
Boşluk Karakteri
Yol içinde boşluk karatkeri varsa en kolayı çift tırnak içine almak.
Örnek
Şöyle yaparız.
cd ~/"foo/spaces are cool/bar"
Örnek
Şöyle yaparız.
cd ~/foo/spaces\ are\ cool/bar
Örnek
Şöyle yaparız.
cd "$HOME/foo/spaces are cool/bar"