How to add alternative to program that located in /usr/bin [closed] - linux

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 Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is it possible to substitute binary with same name alternative? I have /usr/bin/qtcreator
I want to use alternative version but /usr/bin/qtcreator is binary but not alternative.
What the way I should do this?

You could place your new qtcreator at /usr/local/bin/qtcreator, that location should have preference over /usr/bin.
You can check the possible locations for binaries and the order is which they are searched with echo $PATH and you can check which binary will be called with which qtcreator

In Bash:
$ alias qtcreator="/usr/local/bin/qtcreator"
or make sure the path to desired binary is mentioned before the undesired path in $PATH (... as mentioned by others).

Related

how can i create a file in Linux, without using any program/command? [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 Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have a question if I want to create a file without using command or programming?
I know mkdir hi.txt, but is there any way to make without using these?
The touch PATH program will create an empty file at the location entered for PATH.
Example: touch /var/tmp/file.txt will create an empty file at /var/tmp/file.txt
If you want to create a file in Linux, without using any program/command,
you can use > this sign
like > hi.txt it will create a file

How to call an executable from path? [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 Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
A very basic question here..
I have an executable redis-server at /home/dave/redis/src. Usually I cd /home/dave/redis/src then ./redis-server to execute it.
How can I call redis-server in the path? something like /home/dave/redis/src./redis-server
Thank you
You almost got it right. Except for the . (dot).
Instead of
/home/dave/redis/src./redis-server
Do
/home/dave/redis/src/redis-server
It is called an absolute path to the file, and it is simply the directories+file names, seperated by / (with a leading /, to make it absolute), so the . does not belong there.
/home/dave/redis/src/./redis-server
Use a dot in front of the first slash.
For example, if I want to open netbeans from the executable in /home/jason/IDE/netbeans/bin/netbeans,
I just put a dot in front of /home/.../.../ and the executable starts.

Mass file renaming (Linux) [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 Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a directory in linux with lots of images having double underscore (__), I have to make it single under score (_). Lets say file name is a__1.jpg. I have to make it a_1.jpg. I have to do it for all files inside a directory. What should be the command?
Thanks
There are several ways to achieve this goal.
If you have mmv installed (or are able to install it), you can do
mmv \*__* \#1_#2
If not, maybe rename is an option:
rename _ __ *
(but alas, here I am not so sure about the syntax.)

vim settings does not work correctly in zsh [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 Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I just switched my shell from bash to zsh and I noticed that zsh is not using same version of vim that I use in bash. Wondering why that might be the case? Do I need to set some config?
EDIT
remove other stuffs
You either have defined an alias for vim in one of them, or the value of the PATH variable is different.

Globbing for a filename pattern with ls [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
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 Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I need help doing the following:
Say I'm in /usr/bin and I want to run the ls command on a subdirectory of bin called datafiles from within bin.
I need to locate all files using ls that contain a dot . and contain the letters f or u anywhere after the dot.
How do I do this?
Thanks
Is this what you want?
ls datafiles/*.*[fu]*

Resources