This is not how it works: it sudo susimply opens a new shell, so you can enter commands as root, and after exiting this shell it executes the rest of the line as a regular user.
: , ulimit , bash, bash, - sudo ulimit -n 10000 : sudo , .
, - , :
sudo bash -c 'ulimit -n 10000 && <command>'
'...' bash root.
, && ;: , root, ulimit -n 10000 .