How can I clear the command history in Linux?
Answer:
Try:
history -c
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How can I clear the command history in Linux?
Answer:
Try:
history -c
How do I run a root command on Linux?
Answer:
If sudo is installed, you can use
sudo command
or you would need to change to root by using
su -
After login as root, you can execute the command.
How to check what Linux version I am using?
Answer:
If you are using RedHat Linux, you can use
cat /etc/redhat-release
or others
cat /etc/lsb-release
What is the command to display the current TCP/IP configuration?
Answer:
Try:
ifconfig -a
What is the linux command to kick a user out of a system?
Answer:
pkill -U username