show command execution in shell
Hi,
I'm new at linux and need help to turn on information about show command execution in shell eg. Now when I'm writing command: root@kali:~# service apache2 start root@kali:~# // shell do not give me specific information. What can I do to after this kind of command shell show me specific information about how command is running eg. root@kali:~# service apache2 start [...] Starting web server: apache2apache2: using 127.0.1.1 for servername . ok root@kali:~# // What can I do to turn on this kind of communicates? " [...] Starting web server: apache2apache2: using 127.0.1.1 for servername . ok " |
https://www.linuxquestions.org/quest...ad-4175614092/
Is this your homework? I do not really understand what do you need. If you want to check apache you need to check its log file. |
I haven't used the 'service' command in ages, but there's often a --verbose (-v) flag for commands to show more information about what it's doing. Otherwise, there's the 'status' option:
Code:
# service apache2 status I notice that you're logged in as root. It's generally not recommended to hang out as the root user (you can make dumb mistakes as root, and there'll be nothing standing in your way to stop it from happening). That said, 'root' might be the default for Kali, so maybe you have no choice. I have nothing against kali, but to *really* learn Linux, you might want to look at a "real" Linux distribution that you install and use on a daily basis, so you get used to the conventions. Heck, even Porteus, which you can run off of a USB thumbdrive, is something to look at, as long as you actually boot to it. Either way, welcome and have fun! |
Follow
Code:
root@kali:~# service apache2 start Code:
root@kali:~# service apache2 status Oh notKlaatu said that...;) |
Quote:
|
if it is a script, you can just edit it to echo out whever information you need that the script gains within the script, and you can add special messages, like.
Code:
$program start |
All times are GMT -5. The time now is 05:12 PM. |