Change to the previous working directory
Answer:
To change to the previous working directory, use the following command
# cd -
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Change to the previous working directory
Answer:
To change to the previous working directory, use the following command
# cd -
How to install a RPM package
Answer:
To install a RPM package under Red Hat/Fedora/CentOS
# rpm –ivh package.rpm
Display hardware and boot messages
Answer:
To display the hardware and boot messages of your Linux machine,
Try:
# dmesg
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