Linux Newbie needs Help with Bash Shell:

hoov

Senior member
Nov 5, 1999
210
0
0
I want to run some pre writen commands that I downloaded . But I don't know how to get them copied or pasted or magicly transported to the bash shell prompt! Do I need to open the file that they are in from the command line if so then what ?
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
"man bash" will give you more informationa bout BASH.


You can use the program "more" to view the file you downloaded. If it is a binary file thats not the way to do it though.

If the file is a script, you can chmod it to give it executable rights and "./script" to run it.

 

pm

Elite Member Mobile Devices
Jan 25, 2000
7,419
22
81
Pretty much what n0cmonkey said.

If your command line prompt is bash, to run bash commands from the command prompt, just put them in a file, make the file executable ("chmod u+x <filename>") and then type "./<filename>.

If your command line prompt isn't bash, type "bash" first.