Open GUI linux terminal in non-interactive mode
0
votes
0
answers
428
views
It would be helpful if I can open a terminal and run commands exactly as if they would be run by a non-interactive bash script, to test whether certain commands work in non-interactive mode without having to make a script for it. Is this possible?
To be clear I don't mean to set the terminal to non-interactive mode after having started, since at that point it will already have run e.g.
.bashrc
thereby changing the environment.
For example, suppose I have a command test_command file1.txt
, but test_command
is defined in .bashrc
. Then since in non-interactive mode the command won't be found, it shouldn't work in this terminal either.
Asked by user56834
(137 rep)
Sep 18, 2023, 03:26 PM
Last activity: Sep 18, 2023, 03:46 PM
Last activity: Sep 18, 2023, 03:46 PM