5
votes
2answers
198 views

Get the actions for a command programmatically

Let's take the git example: $ git<TAB><TAB> git git-import-dscs git-shell git-buildpackage git-import-orig git-upload-archive git-dch git-pbuilder ...
8
votes
0answers
206 views

how to get exit status from the command before the last [duplicate]

I have solaris machine ( solaris 10 ) please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable") # haconf -makerw VCS WARNING V-16-1-10364 Cluster ...
1
vote
1answer
532 views

What does sourcing a file mean in a shell? [duplicate]

Possible Duplicate: Different ways to execute a shell script What happens when I issue the following command: source devenv.csh How does it differ from running it just as devenv.csh ?
1
vote
2answers
285 views

explain the command `printf — “#!${opt_E}”`

I am not able to understand this command and getting confused : here are things i executed on linux trying to undertand its working [root@testgfs2 final_scripts]# printf -- "#!${opt_E}" printf -- ...
3
votes
2answers
162 views

Make copies of a single directory to multiple directories with different names

I'm trying to replicate a single directory (with sub-directories) to a bunch of new directories based on a list. For example I can: mkdir Fred Barney Thelma Louise Foo Bar How would I copy a premade ...
3
votes
2answers
608 views

is there any command like “wall” that runs a “command” in all terminals

as you know "wall" command sends a message to all terminals: wall message now my question is this: is there any command that can send a "command" to be run in all terminals? for example sending ...
18
votes
3answers
741 views

Which are the standard commands available in every Linux based distribution?

I would like to know which are the standard commands available in every Linux system. For example if you get a debian/ubuntu/redhat/suse/arch/slackware etc, you will always find there commands like: ...
4
votes
5answers
621 views

Execute string result from shell script as a set of shell commands

I create a string result from my shell script and i want to execute it as a shell command. For example file_a is: user1@gmail.com user2@gmail.com script: awk '{print "mail -s \"welcome\"", $1}' ...