Skip to content

Tag: linux

get all aliases in linux shell

How to list all aliases defined in a shell. Like the command below to list all files/folders in a directory I have defined some alias in ~/.bashrc i want to list all that command Answer Are you wondering if you have a UNIX alias already set for a specific command? You can find it easily by issuing this on the

Kernel debugging – gdb step jumps out of function

I’m trying to do understand the kernel network stack for a security research for my university. That’s why I try to debug the linux kernel. So far I’m doing quite well but I ran in a problem when trying to use qemu and gdb for debugging. The problem is as follows: I boot my linux system: mak…

Ubuntu-16.04 + PHP-7.0.22 + ODBC not working

I have been trying to connect MSSQL from my ubantu 16.04 and i had use below tutorial: https://askubuntu.com/questions/578934/mssql-connection-from-ubuntu There is one problem while i am running below command from terminal is: It display below errors: I have follow instruction given by below link answer as we…

Ambari cluster + Service Auto Start Configuration by API

Ambari services can be configured to start automatically on system boot. Each service can be configured to start all components, masters and workers, or selectively. so how to enable all services in ambari cluster to start automatically on system boot by API ? Remark – by default all services are disabl…

Search and Replace under linux?

I tried the following but not adding ” this example I want to replace FILENAME_LOGIN to ‘login.php’ Tried this: However, it gives me login.php not ‘login.php’ Thanks Answer You only need sed for this:

not able to redirect the output to a file in ipython ide

I am not able to redirect the output of dir(modulename) to a file in ipython ide. Please let me know how to do that. It works for the same for ls and other linux commands. Answer You are mixing two worlds here. One is the Python world in which you can call Python functions (like dir()); in this world redirect…