Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-04-2005, 08:45 PM   #1
LQ Newbie
Registered: Jan 2005
Location: Columbus Ohio
Distribution: Slackware 11
Posts: 23

Rep: Reputation: 15
bash: pg: command not found


I'm reading a book (Linux and Unix Shell Programming) and it tells me to do this:

$ pg var_test 
# var_test 
echo "First Name :\c" 
read name 
echo "Middle Name :\c" 
read middle 
echo "Last name :\c" 
read surname
when i try...i get this
$ pg var_test
bash: pg: command not found
i was wondering if this "pg" is a command specific only to straight-up Unix or certain types of Linux, and if so, what is the analogous command for FC3 ?

Any help is greatly appreciated. Thanks!!
Old 02-04-2005, 09:07 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
pg is short for pager. You could use less instead.
Old 02-05-2005, 02:22 AM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Right, pg was written to overcome a "more" command limitation not allowing going backward on a file, and exists on Unix system V systems only I think.
Both modern "more" and the freeware "less" are providing this feature, making pg somewhat obsolete.


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
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 01:45 PM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 10:11 AM
bash: command not found jc80 Fedora 3 03-14-2004 03:11 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 PM.

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