Tiny Core Linux
Tiny Core Base => Micro Core => Topic started 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
:-[
-
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?
-
I often make a quick listing of programs available on new systems, here's how I do it.
ls -C /bin /sbin /usr/bin /usr/sbin /usr/local/bin >> progs
This uses the -C option to arrange the output into columns.
(Use less progs to view.)
8)
-
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 :-\
-
Many of the builtin commands are just symlinks to busybox.
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.
-
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.