Run the last executed command begin with a specific letter
Answer:
To run the last executed command begin with a specific letter, e.g.
# date
Thu Mar 18 21:55:55 HKT 2007
!d
date
Thu Mar 18 21:55:57 HKT 2007
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Run the last executed command begin with a specific letter
Answer:
To run the last executed command begin with a specific letter, e.g.
# date
Thu Mar 18 21:55:55 HKT 2007
!d
date
Thu Mar 18 21:55:57 HKT 2007
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