How to install a RPM package
Answer:
To install a RPM package under Red Hat/Fedora/CentOS
# rpm –ivh package.rpm
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 install a RPM package
Answer:
To install a RPM package under Red Hat/Fedora/CentOS
# rpm –ivh package.rpm
Copy a directory (for backup) to another location
Answer
To copy a directory to another location, for backup purpose, you can use the -a flag, which copy directory recursively, keep all file attributes but never follow symbolic links.
# cp -a source_directoey target_directory
List hidden files in Linux
Answer:
When your directory contains hidden files, e.g. filename start with a dot ., ls command by default will not to show them.
To list all files, include hidden files,
E.g.
# ls -a
Logout from the Linux system
Answer:
To logout from the Linux console, use the logout command.
# logout
Setup default system timezone in Linux
Answer:
To setup the default system timezone in Linux.
1. Check what timezones are available in your system
# ls /usr/share/zoneinfo/
...
Australia Canada EST ..
..
2. From the list above, pick one you want to set, e.g. Canada
# sudo ln -sf /usr/share/zoneinfo/Canada /etc/localtime
That's all.