question

Mike Dorsett avatar image
Mike Dorsett asked

Venus OS 2.66 bash missing 'dir' command?

Just started with Venus OS (2.66) on Pi3b, and having some problems trying to integrate dbus-serialbattery. In trying to debug this, the lack of the DIR command in bash became apparent - this is very useful in trying to find out where you are and navigate the directory structure. Also Venus does not seem to run an rc.local file in the /etc folder? The Three volumes created by the Venus installation are also not labeled as per the normal pi OS, and there seems to be some duplication of folders between what should be 'root' and what should be 'settings'...Please can we have the 'dir' command back?

Venus OSRaspberry Pi
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

3 Answers
wkirby avatar image
wkirby answered ·

Would "ls" not work for you instead of "dir"?
rc.local should go in /data
/data is preserved during updates.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Mike Dorsett avatar image
Mike Dorsett answered ·

Thanks, I think there's a copy there too.... ls does work though. I'm just not used to using command line these days... last time I did a lot was like 40 years ago, when there was no choice.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin Windrem avatar image
Kevin Windrem answered ·

Venus OS is Linux, not MS DOS and there has never been a DIR command in any unix derivative.

ls -al is the closest command to DIR.

Venus OS uses a dual rootfs and there are actually 4 partitions: the running /root, a "backup" /root, /data where all persistent settings are stored and /boot (or /u-boot). The latter is used by the boot loader on the PI to initialize a few things then transfers to the Linux kernel.

When Venus OS software is updated, it is stored in the "other" root fs. If the update is successful, the "other" root fs becomes the active /root. Nothing in /root survives a software update, so any modifications you make to the system must be reinstalled after a software update.

If present, Venus OS executes the /data/rc.local and /data/rcS.local shell scripts during boot. These can be used to reinstall system modifications after a Venus OS update.

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

wkirby avatar image wkirby ♦♦ commented ·
FYI, the bash terminal in Ubuntu (for example) does understand the "dir" command. It works just like "ls". I personally use "ls" but "dir" is there too, who knew!
0 Likes 0 ·
Show more comments