Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To run the script from the terminal, just type in the path to your script. Say you have the script saved as /home/name/script.sh. To run this script you can either type /home/name/script.sh or since the current directory is probably already /home/name/ you can type ./script.sh. (the period is shorthand for the current directory)
To run Acrobat you will have to figure out what directory it is installed in. But if Redhat associated pdfs with Acrobat then all you should have to do is right click on the pdf, the go to "open with" and select Acrobat. And if Acrobat isnt listed there then either browse for acrobat or type in acrobat.
A terminal can be run with Gnome-terminal, or Kterm, or Aterm, or Eterm, or xvt, or rxvt, or xterm, or...
When the terminal window is opened, you've got a prompt. Let's assume this prompt is "$". There are commands you can issue:
- "cd" is for changing directories (like in DOS, except directories are separated by /, and the the origin of everything is /, not C:\).
- "less" is for viewing a file page after page (is that "type" in DOS?).
- "echo" is for displaying text.
- "env" is for viewing environment viariables (it is "set" in DOS).
In linux, multiple paths in an environment variable are separated by a ':', not a ';'. And environment variables are refered to like that: $VAR, or that: ${VAR} (whereas in DOS it is %VAR%).
For example, commands are searched for in each path that appear in the PATH environment variable, until found, in the order they are written. For viewing your path, that would be for example:
If you want to execute a command that is not in a path from PATH, then you must give the full path to the command. You may also use a relative path: like in DOS, "." is for current directory, and ".." is for parent directory. Besides, "~" is for your home directory.
Now back to your question. Let's assume your command is located at (<you> is your login): /home/<you>/myDownloads/install.sh
Then you would execute:
$ cd ~/myDownloads
$ ./install.sh
That's all (don't type the '$': it is the prompt).
I hope this helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.