Can I use
ls command or
wget gnu software inside a Ruby script?
Actually, can I use Ruby instead of Bash , and use all of Linux commands and Gnu Software ?
There are Unix shells written in many popular languages, Ruby included. An example is rush (also described at http://rush.heroku.com/, which, hilariously, has misconfigured SSL). A few examples of its use, from the documentation:
Count the number of classes in your project using bash:
find myproj -name \*.rb | xargs grep '^\s*class' | wc -l
In rush, this is:
It could be debated how practical this is as a Unix shell, but it may be worth a try for a hard-core Ruby user.
I would suggest you to read this answer https://stackoverflow.com/questions/2232/calling-shell-commands-from-ruby
If you don't like bash you can use python, there is also a program called iPython which emulate shell but using python syntax.
x = %x(your command goes here)
if you need the output of the command in a variable, or
system(your command goes here)
if you want the output of the command be displayed on the screen.