Menu driven linux

yum search <queryString>#other than root account
sudo yum search <queryString>
yum install <packagename>#other than root
sudo yum install <packagename>
$date
$ls -l
grep [options]  [files]
-c : This prints only a count of the lines that match a pattern
-h : Display the matched lines, but do not display the filenames.
-i : Ignores, case for matching
-l : Displays list of a filenames only.
-n : Display the matched lines and their line numbers.
-v : This prints out all the lines that do not matches the pattern
-e exp : Specifies expression with this option. Can use multiple times.
-f file : Takes patterns from file, one per line.
-E : Treats pattern as an extended regular expression (ERE)
-w : Match whole word
-o : Print only the matched parts of a matching line,
with each such part on a separate output line.
-A n : Prints searched line and nlines after the result.
-B n : Prints searched line and n line before the result.
-C n : Prints searched line and n lines after before the result.
systemctl [OPTIONS...] COMMAND [NAME...]
sudo useradd  <test_user>
sudo passwd <test_user>
fdisk [options] device
crontab [-u user] file
mount -t type device dir
vim /etc/fstab
# sudo pvcreate /dev/sdd /dev/sde /dev/sdf
# vgcreate vg1 /dev/sdd1 /dev/sde1
sudo lvdisplay
# python3 os.py

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store