Use & but still print to the console
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
I'd like to find the "cpuinfo" file and tried
$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996
However, it still print results to the console
$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc
How to hide them entirely background?
bash
add a comment |Â
up vote
0
down vote
favorite
I'd like to find the "cpuinfo" file and tried
$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996
However, it still print results to the console
$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc
How to hide them entirely background?
bash
4
What is the purpose of this?
â Jesse_b
Jul 29 at 2:35
Where do you want to print the search result? This command with full output redirected to/dev/null
makes no sense.
â Bob
Jul 29 at 3:22
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'd like to find the "cpuinfo" file and tried
$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996
However, it still print results to the console
$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc
How to hide them entirely background?
bash
I'd like to find the "cpuinfo" file and tried
$ find / -iregex ".*cpuinfo.*" 2>/dev/null &
[1] 7996
However, it still print results to the console
$ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/cpuinfo.rb
/usr/local/lib/python3.6/site-packages/numpy/distutils/cpuinfo.py
/usr/local/lib/python3.6/site-packages/numpy/distutils/__pycache__/cpuinfo.cpython-36.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/distutils/cpuinfo.pyc
How to hide them entirely background?
bash
asked Jul 29 at 2:28
JawSaw
2949
2949
4
What is the purpose of this?
â Jesse_b
Jul 29 at 2:35
Where do you want to print the search result? This command with full output redirected to/dev/null
makes no sense.
â Bob
Jul 29 at 3:22
add a comment |Â
4
What is the purpose of this?
â Jesse_b
Jul 29 at 2:35
Where do you want to print the search result? This command with full output redirected to/dev/null
makes no sense.
â Bob
Jul 29 at 3:22
4
4
What is the purpose of this?
â Jesse_b
Jul 29 at 2:35
What is the purpose of this?
â Jesse_b
Jul 29 at 2:35
Where do you want to print the search result? This command with full output redirected to
/dev/null
makes no sense.â Bob
Jul 29 at 3:22
Where do you want to print the search result? This command with full output redirected to
/dev/null
makes no sense.â Bob
Jul 29 at 3:22
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
If you want to hide all output you can redirect stdin and stdout:
find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &
Or with bash:
find / -iregex ".*cpuinfo.*" &>/dev/null &
add a comment |Â
up vote
0
down vote
To have result of the "cpuinfo" file search available with errors suppressed, execute the command find
with screen
utility.
Just start your search with screen detached:
screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null
To reattach screen with the command runnung do
screen -r
Since leading dollar sign $
is present in your command and search will be performed inside root /
, consider to execute find
with sudo
or as root
user.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
If you want to hide all output you can redirect stdin and stdout:
find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &
Or with bash:
find / -iregex ".*cpuinfo.*" &>/dev/null &
add a comment |Â
up vote
3
down vote
accepted
If you want to hide all output you can redirect stdin and stdout:
find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &
Or with bash:
find / -iregex ".*cpuinfo.*" &>/dev/null &
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
If you want to hide all output you can redirect stdin and stdout:
find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &
Or with bash:
find / -iregex ".*cpuinfo.*" &>/dev/null &
If you want to hide all output you can redirect stdin and stdout:
find / -iregex ".*cpuinfo.*" >/dev/null 2>&1 &
Or with bash:
find / -iregex ".*cpuinfo.*" &>/dev/null &
edited Jul 29 at 12:13
answered Jul 29 at 2:34
Jesse_b
10.1k12658
10.1k12658
add a comment |Â
add a comment |Â
up vote
0
down vote
To have result of the "cpuinfo" file search available with errors suppressed, execute the command find
with screen
utility.
Just start your search with screen detached:
screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null
To reattach screen with the command runnung do
screen -r
Since leading dollar sign $
is present in your command and search will be performed inside root /
, consider to execute find
with sudo
or as root
user.
add a comment |Â
up vote
0
down vote
To have result of the "cpuinfo" file search available with errors suppressed, execute the command find
with screen
utility.
Just start your search with screen detached:
screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null
To reattach screen with the command runnung do
screen -r
Since leading dollar sign $
is present in your command and search will be performed inside root /
, consider to execute find
with sudo
or as root
user.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
To have result of the "cpuinfo" file search available with errors suppressed, execute the command find
with screen
utility.
Just start your search with screen detached:
screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null
To reattach screen with the command runnung do
screen -r
Since leading dollar sign $
is present in your command and search will be performed inside root /
, consider to execute find
with sudo
or as root
user.
To have result of the "cpuinfo" file search available with errors suppressed, execute the command find
with screen
utility.
Just start your search with screen detached:
screen -dm find / -iregex ".*cpuinfo.*" 2>/dev/null
To reattach screen with the command runnung do
screen -r
Since leading dollar sign $
is present in your command and search will be performed inside root /
, consider to execute find
with sudo
or as root
user.
answered Jul 29 at 3:40
Bob
5057
5057
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459118%2fuse-but-still-print-to-the-console%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4
What is the purpose of this?
â Jesse_b
Jul 29 at 2:35
Where do you want to print the search result? This command with full output redirected to
/dev/null
makes no sense.â Bob
Jul 29 at 3:22