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
Tag: linux
Changing nice value of a process has no effect in Linux
I read about APUE 3rd, 8.16 Process Scheduling, there is an example written to verify that changing nice value of a process will affect its priority, I rewrite the code like below: And the result of the example is shown below: NZERO = 20 parent nice:20 child nice:20, adjusted by 0 child now nice:20 parent cou…
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…
“[Errno 13] Access denied” when connecting to USB
So I have been following these documentations so that I can print on my thermal printer through python. I am running Ubuntu and have the pyusb module installed. The printer is a Rongta RP58, and it’s idVendor and idProduct were found through the lsusb command (0fe6:811e). Just like in the instructions, …
How to view execution plans in SQL Server on Linux
I have SQL Server installed on Linux. It was installed from Microsoft’s repos as described here: https://learn.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu In MySql I used to write EXPLAIN in front of my query to see the execution plan. In SQL Server it doesn’t seem to work. But…
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…
linux spring tool suite (eclipse) launches from terminal but not from desktop
I am setting up Spring Tool Suite IDE on a linux mint cinnamon machine. I have installed the JDK, added it to my path. When I do java -version everything works. When I navigate to the folder containing Spring tool suite and execute it using ./STS it launches correctly. When I navigate to that file in finder, …
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…