While trying to run certain commands via ubuntu terminal, I receives an error message
Failed to execute process '/bin/grep'. Reason:
The total size of the argument and environment lists 1.8MB exceeds the operating system limit of 2MB.
Try running the command again with fewer arguments.
The above error occured while I was trying to grep a string inside a folder via terminal.
I am using fish shell, with ubuntu 18.04 lts. Has 7.7 GiB RAM. OS type 64bit. GNOME 3.28.2 and has disk space with 34% used.
find
command so the argument will not be a huge list.fish
--and that you're usinggrep
, which offers fine-grained control during recursive operation--I suspect this shouldn't be considered a duplicate of that.