Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: BobWilliams on August 10, 2004, 12:01:30 AM

Title: SME Linux commands
Post by: BobWilliams on August 10, 2004, 12:01:30 AM
Can anyone tell me where can I find a list of the commands for SME 6.0 Linux so I can look them up in the man pages?

Bob...
Title: SME Linux commands
Post by: mbachmann on August 10, 2004, 12:05:01 PM
Save this below as listcommands.sh and execute. You should get a file called list-commands.txt with all commands, about 150 k big. I copied the script from somewhere here, it is not my work but i don't know whom to credit for it.



#!/bin/sh

touch /root/list-commands.txt

echo "********************" >> /root/list-commands.txt
echo "Commands in /usr/bin" >> /root/list-commands.txt
echo "********************" >> /root/list-commands.txt
echo "" >> /root/list-commands.txt
ls /usr/bin | xargs whatis >> /root/list-commands.txt
echo "" >> /root/list-commands.txt

echo "********************" >> /root/list-commands.txt
echo "Commands in /usr/sbin" >> /root/list-commands.txt
echo "********************" >> /root/list-commands.txt
echo "" >> /root/list-commands.txt
ls /usr/sbin | xargs whatis >> /root/list-commands.txt
echo "" >> /root/list-commands.txt

echo "********************" >> /root/list-commands.txt
echo "Commands in /bin" >> /root/list-commands.txt
echo "********************" >> /root/list-commands.txt
echo "" >> /root/list-commands.txt
ls /bin | xargs whatis >> /root/list-commands.txt
echo "" >> /root/list-commands.txt

echo "********************" >> /root/list-commands.txt
echo "Commands in /sbin" >> /root/list-commands.txt
echo "********************" >> /root/list-commands.txt
echo "" >> /root/list-commands.txt
ls /sbin | xargs whatis >> /root/list-commands.txt
echo "" >> /root/list-commands.txt
Title: SME Linux commands
Post by: BobWilliams on August 10, 2004, 11:25:12 PM
Thanks mbachmann for your reply. I'll give it a go as soon as I reinstall SME. I'm playing with Raid-1 setup now.

Bob...
Title: SME Linux commands
Post by: mbachmann on August 11, 2004, 10:29:26 AM
it gives an grep error if you execute but the list is created in /root.

Script is from mdrone at www.tech-geeks.org
Title: SME Linux commands
Post by: BobWilliams on August 12, 2004, 11:58:14 PM
I got that to work just fine mbachmann, thanks.
I found what I wanted in /bin and /sbin. Now on to the problem of getting a HPLJ 4 to work through a USB connection to the SMP 6 Server so I can use it as a network printer. Any thoughts?

Bob...
Title: SME Linux commands
Post by: jpeters on August 13, 2004, 12:15:25 AM
Quote from: "mbachmann"
it gives an grep error if you execute but the list is created in /root.

Script is from mdrone at www.techgeeks.org


Ummm I think you meant http://www.tech-geeks.org not www.techgeeks.org

Great site and thanks for the useful script info.

Jeff
Title: SME Linux commands
Post by: jpeters on August 13, 2004, 12:24:24 AM
Done, danke.
Title: SME Linux commands
Post by: mbachmann on August 16, 2004, 04:12:48 PM
I corrected tech-geeks.org, thanks jpeters (consider deleting double posts).

Fot the USB printer: I strongly recommend using cups: http://no.longer.valid/mylinks/singlelink.php?cid=54&lid=334.

You have to read some pages through but is very good and relieable.