Koozali.org: home of the SME Server

SME Linux commands

BobWilliams

SME Linux commands
« 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...

mbachmann

SME Linux commands
« Reply #1 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

BobWilliams

SME Linux commands
« Reply #2 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...

mbachmann

SME Linux commands
« Reply #3 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

BobWilliams

SME Linux commands
« Reply #4 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...

Offline jpeters

  • *
  • 20
  • +0/-0
SME Linux commands
« Reply #5 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
........................

Offline jpeters

  • *
  • 20
  • +0/-0
SME Linux commands
« Reply #6 on: August 13, 2004, 12:24:24 AM »
Done, danke.
........................

mbachmann

SME Linux commands
« Reply #7 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.