If I issue a
sudo /bin/bash`
[sudo] password for mark:
cmp -bl /dev/blah1 /dev/blah2
and using
sudo cmp -bl /dev/blah1 /dev/blah2
then logging in as root?
I don't see whats different, if issuing multiple command lines then rooting
IMHO seems the logical option over typing sudo prefix to command lines.
I have seen sudo -i
being used to log in to root, that used to work but the last week its issuing an error.
** EDIT **
I logged in as root, issued the command
mark@mark-zotac:~$ sudo cmp -bl /dev/sda "/media/mark/Seagate Expansion Drive/SSD/ssd.img"
[sudo] password for mark:
mark@mark-zotac:~$
It ran, took about 30 minutes to run but produced zero
as in nothing
output. I am left with no indication of failure or success... So how do I know if the compare result was a success?
sudo -l
doesn't login as anything (it is used to check privileges), so OP probably meant-i
. Neither-i
nor-s
timeout (at least by default).-i
is better as it resets some variables like$HOME
which are left untouched by-s
. – muru Mar 04 '15 at 20:36exit
command or close the terminal. – Mark Giblin Mar 04 '15 at 20:45-i
, I am going through some strange issues with typing where I type a word and its all jumbled up, hence my query about rooting, mainly because I have typos and get fed up of typing, also another reason for logging in is to save my fingers which are beginning to early onset of arthritis :( – Mark Giblin Mar 04 '15 at 20:48bg
the process will be ran in background independent. Or just dosudo command &
– Sergiy Kolodyazhnyy Mar 04 '15 at 20:48cmp
is supposed to work.man cmp
will help - and reading about command exit status. – Rmano Mar 04 '15 at 21:37