WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Microcore commands  (Read 5451 times)

Offline Colin

  • Newbie
  • *
  • Posts: 4
Microcore commands
« on: June 10, 2015, 05:13:38 AM »
I hope I'm not being ignorant & that I won't get an angry response, but is there an easy way of listing all commands available in Microcore so I can > them into command.txt?  I've tried tab tab but they scroll past too fast, & compgen doesn't seem to work.
Colin
:-[

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Microcore commands
« Reply #1 on: June 10, 2015, 05:17:59 AM »
I don't think there is. "help" will list only busybox executables, otherwise maybe "ls /usr/bin" for all PATH directories?

Do you know you can scroll in a shell by shift-page up?
The only barriers that can stop you are the ones you create yourself.

Offline core-user

  • Full Member
  • ***
  • Posts: 195
  • Linux since 1999
Re: Microcore commands
« Reply #2 on: June 10, 2015, 08:34:10 AM »
I often make a quick listing of programs available on new systems, here's how I do it.
Code: [Select]
ls -C /bin /sbin /usr/bin /usr/sbin /usr/local/bin >> progsThis uses the -C option to arrange the output into columns.
(Use less progs to view.)
 8)
AMD, ARM, & Intel.

Offline Colin

  • Newbie
  • *
  • Posts: 4
Re: Microcore commands
« Reply #3 on: August 14, 2015, 07:10:11 AM »
Sorry for the delay in getting back, but thanks both!
There do seem to be a lot of commands & executables I don't need, is it easy to get rid of them please?
And do you think MC can be stripped down to 999kb or less?
Thanks again
Colin  :-\

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Microcore commands
« Reply #4 on: August 14, 2015, 07:44:09 AM »
Many of the builtin commands are just symlinks to busybox.
Code: [Select]
ls -l /bin /sbin /usr/bin /usr/sbin /usr/local/bin | grep busybox

/usr/local/bin/mc  is just 972K
mcdiff, mcedit, mcview are the same size though, and seem to actually be just copies of  mc . I wonder if those would work if they where just symlinked to  mc  just like with busybox.


EDIT:
Yep, that works.  mc.tcz  could be repacked using symlinks for  mcdiff, mcedit, mcview .
However, this doesn't reduce the size of  mc.tcz . I guess squashfs is smart enough to detect duplicates.
« Last Edit: August 14, 2015, 07:55:57 AM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Microcore commands
« Reply #5 on: August 14, 2015, 08:00:13 AM »
In case you mean MicroCore, no, just the kernel is 3.3mb. You cannot fit a current kernel to a floppy even in a minimal config, and that is 1.44mb.
The only barriers that can stop you are the ones you create yourself.