LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-11-2009, 10:43 PM   #1
nicdaug
Member
 
Registered: Jan 2006
Location: Phx, AZ
Distribution: Sabayon
Posts: 36

Rep: Reputation: 15
Question need assistance with CLI


I was wondering if there is a command that will provide a list of available commands on my hosting server. The hosting provider does not seem to have a compiled list.

Last edited by nicdaug; 02-11-2009 at 11:26 PM.
 
Old 02-11-2009, 11:18 PM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
find / -perm +a+x

perhaps?
 
Old 02-11-2009, 11:24 PM   #3
nicdaug
Member
 
Registered: Jan 2006
Location: Phx, AZ
Distribution: Sabayon
Posts: 36

Original Poster
Rep: Reputation: 15
Unfortunately that appears to only provide a list of all files on the server. Any other ideas?
 
Old 02-11-2009, 11:36 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
That will provide a list of all the executable files. So you can be sure that all the commands (except those are are shell builtins) will be on that list.

Most commands will reside on /bin or /usr/bin, but there can be as many locations as your admin wanted to setup. There's no comprehensive list unless your admin has made one, and it all depends on the packages and tools that the admin has installed.
 
Old 02-11-2009, 11:39 PM   #5
nicdaug
Member
 
Registered: Jan 2006
Location: Phx, AZ
Distribution: Sabayon
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for the reply. I didn't think there was a way to get all of the commands but I was hopeful. I guess it's just going to be trial and error.
 
Old 02-11-2009, 11:43 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by nicdaug View Post
Thanks for the reply. I didn't think there was a way to get all of the commands but I was hopeful. I guess it's just going to be trial and error.
Well, if you let us know what exactly do you want to do we might be able to suggest some possible tools. Then the list of binaries to check will be much smaller.
 
Old 02-11-2009, 11:49 PM   #7
nicdaug
Member
 
Registered: Jan 2006
Location: Phx, AZ
Distribution: Sabayon
Posts: 36

Original Poster
Rep: Reputation: 15
There was nothing in particular. I just found it quite annoying that the man command wasn't available on the server and wanted to determine what commands I actually did or did not have access to.
 
Old 02-11-2009, 11:54 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If the shell is bash and autocompletion is configured, then pressing TAB twice should give you a list of all the available commands. However it usually won't be a small list. It all depends on how the $PATH is configured. I don't know about other shells.
 
Old 02-12-2009, 01:30 AM   #9
nicdaug
Member
 
Registered: Jan 2006
Location: Phx, AZ
Distribution: Sabayon
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks i92guboj, tapping the tab key twice did the trick and there are a lot more commands than I originally thought were available.
 
Old 02-12-2009, 02:07 AM   #10
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Code:
locate bin/ | less
should do the trick.

Yves.
 
Old 02-16-2009, 12:45 PM   #11
bach-fiend
LQ Newbie
 
Registered: Feb 2009
Location: St Paul, Minnesota, USA
Distribution: Redhat Fedora 10; someday planet CCRMA
Posts: 11

Rep: Reputation: 0
Unix has grown enormously. This seems both good and bad. I personally would recommend you start out by looking at the classic unix shell commands. There are only a couple hundred of them. At first they seem puzzling. "Why would anyone want to do THAT?!?!" When you are more familiar with them and start using them in pipes (|) they are almost a language, and an astonishingly powerful one. One classic book mentioned a spell checker as an example. It was simple and frill-free, but usable, and was coded as a command line maybe 40 CHARACTERS long.

Remember too that unix was born back when 64 K Bytes of memory was all you could address in small (affordable) machines. Something big like a C compiler was split in steps, stages, passes or whatever, and they were glued together in a pipe. (The stages in a pipe can work concurrently, each stage able to consume input as soon as its predecessor produces its output. Each TASK might view at most 64K, but the hardware might have a whole megabyte, and the little tasks in the pipeline could, together, use a BIG chunk of memory.)

Finally, remember that these core commands have been around in use for over THIRTY YEARS. The idiom "tried and true" comes to mind. These tools may look quaint or even antiquated, but they were conceived by a small group (Bell Labs) of some of the most gifted programmers in the world. I can think of no better way to learn the essentials of programming than by looking at this brilliant and seminal work.
 
  


Reply

Tags
classic, commandline



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
Saving CLI data in the CLI Tons of Fun Linux - General 4 04-03-2007 05:42 AM
Need assistance please wennie Linux - Software 5 03-16-2005 07:24 AM
Need assistance spotslayer Linux - Software 1 11-18-2004 06:49 AM
Please offer assistance mr2324jgf Linux - Networking 1 02-22-2004 02:01 PM
Need Assistance Bizar Slackware 11 06-25-2003 09:10 PM

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

All times are GMT -5. The time now is 07:01 AM.

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