LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-02-2003, 09:57 PM   #1
jayelitumbiolo
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 z35cups-1.0-1.tar.gz.sh--to 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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
sh is the command to run i.e. execute a shell script. The shell script being the z35cups-1.-.....tar.gz.sh 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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 PM.

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