I’m trying to switch maven from 2 to 3 (on Linux) using: Anyway mvn -v still gives version 2, so I always have to execute /path/to/maven3/bin/mvn to use maven. How can I rebind the mvn command to the appropriate maven path? Answer which mvn And then recreate symbolic link to point on new Maven version. …
Tag: linux
Ask GDB to list all functions in a program
How can you list all functions in a program with GDB? Answer info functions prints the names and data types of all defined functions. See 16 Examining the Symbol Table.
Porting windows application to linux
I have an application which I need to port on Linux. I was thinking to use Free Pascal the problem is the application uses Windows API’s to perform tasks such as serial port communication etc… Is there a msdn for linux users or a book covering how linux works internaly if there are apis. I am very…
Any good tools to solve integer programs on linux? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and …
Emacs, Linux and international keyboard layouts
Is there an easy way to use Emacs key-bindings when you are using a not-English (Russian) keyboard layout? Whenever an international layout is on, all keystrokes are interpreted literally, M-ф instead of M-a. As a result I can’t use commands. It would also be nice if Linux could interpret non-prefixed a…
how to grep listening on port 80 that can also filter other port contain 80 such as 8080 8088 …?
I want to use bash to grep if any process is listening on port 80,but now I stumble upon other port number which annoys me. How can I filter this in grep? It also outputs other records such as 8080 8088 and so on. Answer I’m looking at the output of my netstat command, and see this: I take it
How to completely destroy a socket connection in C
I have made a chat client in linux using socket, and i wish to destroy the connection completely. Following is the relevant portions of the code: but the close(sock) doesnot seem to close the destroy the connection completely, because after going to ‘label’ the code is exiting showing the error me…
libaio.so.1: cannot open shared object file
I have a simple test program that when I run I get: I link it like this: My LD_LIBRARY_PATH contains this: /usr/lib looks like this: Output of ldd hello: I’m hoping that I’m missing something simple here. The oracle instantclient package appears to require libaio, but that seems to be installed al…
The difference between initrd and initramfs?
As far as I know, initrd acts as a block device, thus requiring a filesystem driver (such as ext2). The kernel must have at least one built-in module for detecting filesystem of initrd. In this article, Introducing initramfs, a new model for initial RAM disks, it is written that: But ramdisks actually waste e…
Exit Bash Mode? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …