Skip to main content

Thread: BASH - service --status-all


the following cmd generates .txt partial listing of running services on system:

service --status-all > services.txt | gedit& services.txt

cannot remember how load text file complete listing. suggestions? i'm looking 1 linerer....

i'm not sure understand you're asking, iirc services status can't determined (the ones shown [ ? ] alongside) go stderr instead of stdout - if want capture file need like

code:
service --status-all > services.txt 2>&1
or (in newer versions of bash only)

code:
service --status-all &> services.txt


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Ubuntu Application Development BASH - service --status-all


Ubuntu

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP