Questions tagged [busybox]

BusyBox combines tiny versions of many common UNIX utilities into a single small executable.

BusyBox (“the Swiss Army knife of embedded Linux”) combines common command-line utilities into a single executable. It includes a shell, file utilities such as ls and cp, text utilities such as grep and sed, basic system utilities such as init and syslogd, system administration utilities such as fsck and sysctl, networking utilities such as ping and ifconfig, and more. It is intended for small Linux systems such as boot floppies and embedded devices.

External links

411 questions
126
votes
7 answers

How to get whole command line from a process?

How can I get the command arguments or the whole command line from a running process using its process name? For example this process: # ps PID USER TIME COMMAND 1452 root 0:00 /sbin/udhcpc -b -T 1 -A 12 -i eth0 -p…
Michael
  • 1,583
  • 3
  • 13
  • 19
56
votes
9 answers

What overwrites /etc/resolv.conf on every boot?

I was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection. We have 3 DNS servers in the network, which all work. I can ping them, too. But when trying…
Minix
  • 5,735
  • 8
  • 28
  • 45
44
votes
2 answers

When does the system send a SIGTERM to a process?

My server program received a SIGTERM and stopped (with exit code 0). I am surprised by this, as I am pretty sure that there was plenty of memory for it. Under what conditions does linux (busybox) send a SIGTERM to a process?
michelemarcon
  • 3,357
  • 10
  • 32
  • 37
36
votes
7 answers

Merge two lists while removing duplicates

I have an embedded linux system using Busybox (OpenWRT) - so commands are limited. I have two files that look like: first file aaaaaa bbbbbb cccccc mmmmmm nnnnnn second file mmmmmm nnnnnn yyyyyy zzzzzz I need to merge these 2 lists into 1…
slthomason
29
votes
3 answers

Are BusyBox commands truly built in?

I was reading the famous Unix Recovery Legend, and it occurred to me to wonder: If I had a BusyBox shell open, and the BusyBox binary were itself deleted, would I still be able to use all the commands included in the BusyBox binary? Clearly I…
Wildcard
  • 35,316
  • 26
  • 130
  • 258
29
votes
2 answers

Recovering from 'grub rescue>' crash

Originally posted to AskUbuntu.com ... AskUbuntu has adopted a policy of closing questions about EOL (End Of Life) versions. There's a vocal contingent to remove them as well. To prevent possible loss of this popular question (342335 views to…
DocSalvager
  • 2,143
  • 2
  • 25
  • 38
27
votes
5 answers

Sorting ls output by date in filename, in reverse order

I can generate output sorted by date in "normal order" with the following command: ls -A -lR | grep "^-" | sed "s/.\{43\}/&\n/" | grep -v "^-" | while read ONELINE; do if echo $ONELINE | cut -d " " -f3 | grep -o '[0-9][0-9]:[0-9][0-9]' > /dev/null…
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
25
votes
3 answers

How do I find the resident memory size of a process on busybox?

I run top on busybox and it shows all processes and their virtual memory size. How do I determine how much RAM is being used by each process?
Collin Anderson
  • 1,831
  • 2
  • 12
  • 8
24
votes
4 answers

How does one atomically change a symlink to a directory in busybox?

I am trying to (as close as possibly) atomically change a symlink. I've tried: ln -sf other_dir existing_symlink That just put the new symlink in the directory that existing_symlink pointed to. ln -sf other_dir new_symlink mv -f new_symlink…
Shawn J. Goff
  • 45,338
  • 25
  • 134
  • 145
24
votes
5 answers

How do I check busybox version (from busybox)?

I'm using busybox in a embedded system, and I would like to check its version. How do I check the busybox version from within busybox?
The Student
  • 3,439
  • 9
  • 30
  • 34
24
votes
3 answers

Stat disk drives wihout lsblk?

I have a minimalist busybox system that I was recently trying to use, and I found a small problem: it has no lsblk command. Is there another command to list disks, partitions, and sizes like lsblk? Some that also don't work: lsblk lsusb fdisk…
TheDoctor
  • 935
  • 3
  • 8
  • 9
18
votes
6 answers

Busybox ping IP works, but hostname nslookup fails with "bad address"

I am compiling my own 3.14 kernel. I fear I may have left out some important networking feature to get DNS working. I can't resolve domain names. I can ping my DNS server. I can resolve using that DNS on other machines so I know it's not the…
AllenKll
  • 656
  • 2
  • 9
  • 16
18
votes
2 answers

Find the PID's of all threads of a process without ps or pidof

So the system I'm working on (BusyBox) has a ps that takes no command line arguments and pidof returns nothing even though it exists within /sbin and points to killall5. Another issue I had is that top takes no -H, but you can hit h (not H) in top…
Madau
  • 181
  • 1
  • 1
  • 3
17
votes
3 answers

Package manager for Busybox

Is there a package manager for busybox devices? After all, Busybox utilities are quite restricted. I suppose one would have to compile it for specific device. Suppose that you have a device running a Linux kernel and using a Busybox binary for all…
user1561358
  • 305
  • 1
  • 2
  • 8
15
votes
3 answers

How to get 3 minutes future date?

I want to get the date 3 minutes on the future. For example, if "now" is 01-Jan-70 00:00:00 GMT I want to get 01-Jan-80 00:03:00 GMT How should I do it? I'm working with busybox linux.
michelemarcon
  • 3,357
  • 10
  • 32
  • 37
1
2 3
27 28