Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコマンドが Bash で機能しない理由と、それを実行する方法を知りたいです。
/etc/init.d/{httpd,nscd} status
ありがとう
コマンドが実行されるため、コマンドは機能しません。
/etc/init.d/httpd /etc/init.d/nscd status
あなたが望むものを達成する1つの方法は、ループを利用することです:
for util in /etc/init.d/{httpd,nscd} ; do ${util} status done