I am just curious about what Ubuntu is doing behind the scenes after I type a command in the terminal and it takes a long time to complete the requested action. In my case here now, I typed the command to completely clean an 8GB pendrive and it took more than half an hour to do it. I want to completely clean a second pendrive, and I’d just like to see what Ubuntu is doing. The particular command is imaterial, as I've had this happen several times already with other commands, particularly those for formatting disks; but here is the command I’m about to use:
sudo dd if=/dev/zero of=/dev/sdX
where ‘X’ could be any relevant letter.
As I see it, I might open one more terminal and type a command to tell me verbosely and in real time what Ubuntu is doing in order to clean the pendrive (or perform any other requested action).