How to check if my system was just rebooted
Answer:
Use the following command
sudo last reboot
And it will show all the reboot information, e.g.
reboot system boot 2.6.27-7-server Sat Jan 2 19:03 - 20:39 (01:35)
...
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to check if my system was just rebooted
Answer:
Use the following command
sudo last reboot
And it will show all the reboot information, e.g.
reboot system boot 2.6.27-7-server Sat Jan 2 19:03 - 20:39 (01:35)
...
How to generate random password?
Answer:
Install the "makepasswd" package, for example, in Ubuntu, type
sudo apt-get install makepasswd
Then execute command
# makepasswd
ShdDHNt7z
Or you can use another tool called pwgen
sudo apt-get install pwgen
and execute
# pwgen 8 10
It will generate 10 passwords with length equal to 8
Where can I find offical Ubuntu Archive Mirrors?
Answer:
Pick a mirror at this url: https://launchpad.net/ubuntu/+archivemirrors
How to zip a file in Ubuntu?
Answer:
Firstly, install the "zip" package if not installed
sudo apt-get install zip
Then run the command
zip test.zip test.txt
Install Java Runtime environment under Ubuntu
Answer:
In the command shell, type:
sudo aptitude install sun-java6-jre sun-java6-plugin
The commands will install the Java Runtime environment as well as the browser's plugin (e.g. Firefox)