Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 11-02-2003, 09:57 PM   #1
LQ Newbie
Registered: Oct 2003
Location: Griffith, IN
Distribution: RH 9
Posts: 15

Rep: Reputation: 0
How do I make printer driver installation commands work?

Commands--examples: First, log on as root, then run ./install--or--./install --prefix/usr--or--./install --gzip, etc. Another example: run this command-- - sh install Lexmarkz25/35 driver. Does "run" mean "type?" because that is what I do. I know the basic commands of current directory, change directory, list, file, less, and a few more. I always know the directory I'm in or the directory the file I want to run is in. I know how to get into root when I'm instructed to. I really need help conceptuallizing this command system. Please help.
Old 11-06-2003, 07:15 PM   #2
Registered: Aug 2002
Posts: 21,589

Rep: Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163
sh is the command to run i.e. execute a shell script. The shell script being the file. File extensions like .com do not have any meaning in linux however there are some that are used for naming conventions. sh for shell scripts and .conf for configuration files are but a couple. Thats not the only way to execute a shell script. If you set its permissions for excute you can 'run' the script by just typing in its name like
./name. The command chmod changes a files permissions.

The ./ is a short cut for current working directory. Unlike windows the environment path does not automatically include the current working directory. The command:
echo $PATH

Will display the current users enviroment path variable.

I assume that ./install is just another special install script for a particular application your trying to install. gzip is the application that zips and unzips files just like the DOS/windows versions.

A shell script is similar to a batch file in DOS or windows but 100x more powerfull. The console text window is also known as a shell and the ususal installed shell is BASH i.e. Borne Again Shell. The linux shell has lots of commands. Just search the web for info or run down to your local library or Barns and Noble and browse the bookshelfs on linux books. You will find some on the BASH shell and shell programming.

The command system is basically no different than the old DOS command prompt except it works 1000x better. The commands can be cryptic sometimes but you will catch on quickly. You have shell internal commands and external applications. If the command isn't in the path variable then either type in the whole path to the command or change the path variable to include that commands directory locations. The man pages has basic help files for a particular command ie

man chmod


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I make a printer work without a Linux driver? tigerflag Linux - Hardware 3 10-12-2005 11:40 AM
configure, make and make install commands don't work for me Fenster Fedora 8 08-18-2004 10:58 AM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM
Clearly stated driver installation commands do not work from command line in terminal jayelitumbiolo Linux - Newbie 4 10-27-2003 12:52 AM
how do i make redhat recognize my printer new printer driver Kilahchris Linux - General 2 03-04-2003 05:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration