sudo apt-get install bashdb
bashdb, release 4.2-0.8
To see if your standard bash executable has bashdb support, execute the command shown below; if you are not taken to a bashdb prompt then you'll have to install bashdb yourself.
$ bash --debugger -c "set|grep -i dbg" ... bashdb<0>
$ strace mysql ";" 2>&1 | grep cnf
stat("/etc/my.cnf", 0x7fff8beb00f0) = -1 ENOENT (No such file or directory)
stat("/etc/mysql/my.cnf", {st_mode=S_IFREG|0644, st_size=3505, ...}) = 0
open("/etc/mysql/my.cnf", O_RDONLY) = 3
stat("/etc/mysql/conf.d/client.cnf", {st_mode=S_IFREG|0644, st_size=51, ...}) = 0
open("/etc/mysql/conf.d/client.cnf", O_RDONLY) = 4
stat("/etc/mysql/conf.d/mysqld.cnf", {st_mode=S_IFREG|0644, st_size=272, ...}) = 0
open("/etc/mysql/conf.d/mysqld.cnf", O_RDONLY) = 4
stat("/etc/mysql/conf.d/mysqld_safe_syslog.cnf", {st_mode=S_IFREG|0644, st_size=21, ...}) = 0
open("/etc/mysql/conf.d/mysqld_safe_syslog.cnf", O_RDONLY) = 4
stat("/home/ubuntu/.my.cnf", 0x7fff8beb00f0) = -1 ENOENT (No such file or directory)
$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
/bin/zsh
/usr/bin/zsh
#if no zsh then to install
$sudo apt-get install zsh$echo $SHELL
No comments:
Post a Comment