Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: Colin on June 10, 2015, 05:13:38 AM

Title: Microcore commands
Post by: Colin 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
:-[
Title: Re: Microcore commands
Post by: curaga 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?
Title: Re: Microcore commands
Post by: core-user 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)
Title: Re: Microcore commands
Post by: Colin 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  :-\
Title: Re: Microcore commands
Post by: Misalf 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.
Title: Re: Microcore commands
Post by: curaga 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.