Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
"
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
Also:
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.
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:
Code:
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.
Code:
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?
Code:
[...] Starting web server: apache2apache2: using 127.0.1.1 for servername
Two things stand out:
You need to learn what commands produce what output. Starting a service means that any information/errors go to that services log files or the system journal, NOT to the screen. Doing an ls or grep puts output to the screen (STDOUT). Different commands=different results
Your prompt of "root@kali".
Kali is for **ADVANCED** Linux users, and even then to be used for security/pentesting purposes, not to run a webserver. Their own website tells you this...stop where you are and load a version of Linux that's more suitable for new users.
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
[message is]
program is starting...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.