![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: Sep 2006
Beans: 50
|
what do I do with SH files?
Hello, i have downloaded 2 .sh files and I am wondering how I can use them. here are my questions:
1. What type of file is it 2. what is is used for 3. how can i open it or execute it |
|
|
|
|
|
#2 |
|
Fresh Brewed Ubuntu
![]() |
shel script is the type if I am not mistaken.
you can run them from the terminal. ./<filename> If that does not work... make it executable first by doing.. chmod +x <filename> what files are they?
__________________
Like my avatar? Help us make more and your own! http://launchpad.net/memaker Book of Mormon-MP3 or BOOK "Microsoft is open-source friendly in the same way that a butcher is friendly to a cow." -- This Guy |
|
|
|
|
|
#3 |
|
Dipped in Ubuntu
![]() Join Date: Aug 2006
Location: Belgium
My beans are hidden!
Xubuntu 8.04 Hardy Heron
|
Re: what do I do with SH files?
Files with a .sh extension are shell script, they are simply a combination of shell logic. (you can compare them with dos .bat files). To view their contents, simply open them in a text editor. Most likely it's an auto installer of some kind (java ?, nvidia driver ?, a linux game ?). These auto installers typically contain a piece of shellcode to do the installation followed by the zip file with some logic do verify the checksum. So if you want to know what they do (and you're not scared from some shell command open them in a text editor).
In order to execute them (simply use them). You can open a console, cd to the right directory and run chmod +x file.sh (this sets the execute flag, which probably isn't there if you downloaded it from some place and then you can execute it using ./file.sh (you need the ./ because the current directory isn't in your $PATH). Another option is simply execut sh /path/to/file.sh in this case you don't need to set the execute bit. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|