Hallo,
kann man eigentlich die zwei Befehle:
ps ax | grep -i smbd
ps ax | grep -i nmbd
zusammenfassen? Also so das ich beide auf einmal angezeigt bekomme und nicht immer einzeln eintippen muss.
Ps: Wusste nicht so recht in welches Forum. Aber da hier bestimmt noch ein paar das "Problem" haben, dachte ich mir das gehört hier hin.
Diese Website existiert nur weil wir Werbung mit AdSense ausliefern.
Bitte den AdBlocker daher auf dieser Website ausschalten! Danke.
Bitte den AdBlocker daher auf dieser Website ausschalten! Danke.
Grep-Frage
Moderator: Moderatoren
Moin,
so
oder so:
wobei bei Letzterem ps ax | grep -i nmbd nur ausgeführt wird, wenn das erste greppen erfolgreich war.
so
Code: Alles auswählen
ps ax | grep -i smbd ; ps ax | grep -i nmbd
Code: Alles auswählen
ps ax | grep -i smbd && ps ax | grep -i nmbd
ps -ax | grep -i "smbd\|nmbd"
tell people what you want to do, and they'll probably help you to do it.
PackMan
LinWiki : Das Wiki für Linux User
PackMan
LinWiki : Das Wiki für Linux User