History Commands

    1  yum repolist
    2  rm k
    3  rm /root/k
    4  cd /root/k
    5  cd /root
    6  ll
    7  cd /etc/yum.repos.d/
    8  ll
    9  rm root_k.repo
   10  yum repolist
   11  yum update --security
   12  yum repolist
   13  ps ax
   14  ps aux
   15  ps ax|grep emacs
   16  top
   17  gnome-system-monitor
   18  systemctl enable --now cockpit.socket
   19  hostname
   20  free
   21  free -m
   22  lsblk
   23  blk
   24  blkid
   25  lsblk -l
   26  blkid sda1
   27  blkid sda2
   28  blkid /dev/sda2
   29  blkid -po udev /dev/sda2
   30  findmnt
   31  findmnt -l
   32  findmnt -t xfs
   33  df
   34  df -h
   35  df -h type xfs
   36  df -th type xfs
   37  df -Th type xfs
   38  df -Th xfs
   39  df -Th
   40  df -th xfs
   41  df -h xfs
   42  df -h
   43  du
   44  du /
   45  su - balu
   46  who -r
   47  who -a
   48  su - balulnt
   49  yum install rasdaemon
   50  systemctl start rasdaemon
   51  systemctl enable rasdaemon
   52  ras-mc-ctl --help
   53  ras-mc-ct --mainboard
   54  ras-mc-ct --summary
   55  ras-mc-ctl --summary
   56  ras-mc-ctl --errors
   57  systemctl start snmpd.service
   58  systemctl start snmpd
   59  systemctl install snmpd
   60  yum install snmpd
   61  yum list all
   62  yum list all|grep httpd
   63  scp /etc/yum.repos.d/redhat.repo apple@192.168.0.103:/Users/apple
   64  systemctl start snmpd
   65  systemctl start snmpd.service
   66  dnf install net-snmp
   67  systemctl start snmpd
   68  systemctl status snmpd
   69  vim /etc/snmp/snmpd.conf

   70  systemctl reload snmpd
   71  systemctl restart snmpd
   72  systemctl status firewalld
   73  systemctl status firewall*
   74  systemctl status firewa*
   75  systemctl status fir:
   76  systemctl status fir*
   77  setenforce 1
   78  getenforce
   79  getenforce 0
   80  getenforce
   81  setenforce 0
   82  getenforce
   83  rpm -q kexec-tools
   84  yum install system-config-kd*
   85  yum install system-config-kdump
   86  yum install kexec-tools
   87  yum install system-config-kdump
   88  system-config-kdump
   89  localectl list-locales | grep en
   90  loaclectl set-locale LANG=locale
   91  localectl set-locale LANG=locale
   92  localectl set-locale LANG=en_GB.utf8
   93  localectl status
   94  localectl list-keymaps | grep cz
   95  localectl set-keymap map
   96  loaclectl set-x11-keymap map
   97  localectl set-x11-keymap map
   98  localectl list-keymaps
   99  localectl list-keymaps|grep *mac
  100  localectl list-keymaps|grep mac
  101  localectl set-keymap mac-us
  102  localectl set-x11-keymap map
  103  localectl set-x11-keymap mac-us
  104  cd /mnt
  105  ll
  106  cd /opt/
  107  ll
  108  cd AppStream/
  109  ll
  110  cd /mnt/
  111  ll
  112  cd AppStream/
  113  ll
  114  cd /opt/
  115  ll
  116  cd ../
  117  cd /opt/
  118  ll
  119  rsync -r /mnt/ /opt/
  120  rsync -rv /mnt/ /opt/
  121  hwclock
  122  timedatectl list-timezones |grep Europe
  123  timedatectl list-timezones |grep india
  124  timedatectl list-timezones |grep Asia
  125  timedatectl list-timezones |grep Asia/India
  126  timedatectl list-timezones |grep -i india
  127  timedatectl list-timezones |grep -i asia
  128  timedatectl set-ntp boolean
  129  timedatectl set-ntp 1
  130  timedatectl
  131  timedatectl set-ntp 0
  132  timedatectl
  133  timedatectl set-local-rtc 1
  134  timedatectl set-time 22:13:00
  135  timedatectl
  136  timedatectl set-local-rtc 0
  137  timedatectl
  138  timedatectl list-timezones
  139  timedatectl list-timezones|grep asia
  140  timedatectl list-timezones|grep -i asi
  141  timedatectl set-timezone Asia/Kolkatta
  142  timedatectl set-timezone Asia/Kolkata
  143  timedatectl set-timezone Asia/Tokyo
  144  timedatectl
  145  timedatectl set-timezone Asia/Kolkata
  146  timedatectl set-ntp 1
  147  timedatectl   148  date
  149  date --utc
  150  date
  151  date --utc
  152  date +"5:30"
  153  date +"date"
  154  date
  155  date --utc
  156  date +"%Y-%m-%d%H:%M"
  157  hwclock
  158  cat /usr/share/doc/setup*/uidgid
  159  cat /usr/share/doc/setup/uidgid
  160  mount /dev/sr0 /mnt/
  161  cp -R /dev/* /opt/
  162  cd /opt/
  163  ll
  164  cd ..
  165  rm -R /opt/*
  166  rm -Rf /opt/*
  167  cp -R /dev/sr0/* /opt/
  168  cp -Rf /dev/sr0/* /opt/
  169  cp /mnt/* /opt/

  170  cd /opt/
  171  ll
  172  rm -rf .
  173  ll\
  174  ll
  175  cd ../
  176  rm -rf /opt/*
  177  cp -rf /mnt/ /opt/
  178  cd /opt/
  179  ll
  180  rm -rf mnt/
  181  cd ../
  182  cp -rf /mnt/* /opt/
  183  cd /opt/
  184  ll
  185  rm -rf AppStream/
  186  cd ../
  187  rsync --help
  188  ll
  189  top
  190  cd /opt/
  191  ll
  192  umount /mnt
  193  cd /mnt/
  194  ll
  195  mount /dev/sr0 /mnt/
  196  ll
  197  mount /dev/sr0 /mnt/
  198  cd /opt/AppStream/
  199  ll
  200  cd /opt/BaseOS/
  201  ll
  202  vim /etc/yum.repos.d/redhat.repo
  203  yum search http*
  204  vim /etc/yum.repos.d/redhat.repo
  205  yum search http*
  206  rpm -q httpd
  207  cd /opt/
  208  cd /mnt/
  209  ll
  210  rm -rf /opt/
  211  ll
  212  cd /opt
  213  mkdir /opt
  214  cd /opt/
  215  ll
  216  cd /mnt/
  217  cd /opt/
  218  ll
  219  vi /etc/bashrc
  220  vi /etc/bashrc_profile
  221  c
  222  exit
  223  c
  224  rm -i /etc/bashrc_profile
  225  cd /etc/
  226  vim ~/.bash_profile
  227  exit
  228  useradd ba
  229  useradd -c 'software_engineer' -d /home/ -e '2020-02-30' -g soft -f 7
  230  useradd -c 'software_engineer' -d /home/ -e '2020-02-30'  -f 7
  231  useradd -c 'software_engineer' -d /home/ -e '2020-02-30' -f 7
  232  useradd -c 'software_engineer' -d '/home/' -e '2020-02-30' -f 7
  233  useradd -c 'software_engineer' -d '/home/ software_balu
  234  useradd -c 'software_engineer' -d '/home/ soft
  235  useradd -c 'software_engineer' -d '/home/' soft
  236  useradd -c 'software_engineer' -d '/opt/' soft
  237  useradd -c 'software_engineer' -d '/opt/' software
  238  useradd -c 'software_engineer' software
  239  tail /etc/passwd
  240  mkdir /opt/project
  241  groupadd myproject
  242  usermod -g myproject ba
  243  usermod -g myproject ca
  244  usermod -G myproject balu
  245  usermod -G myproject balulnt
  246  chown root:myproject /opt/project/
  247  chmod 2775 /opt/myproject
  248  chmod 2775 /opt/
  249  ll
  250  cd /opt/
  251  ll
  252  cd project/
  253  ll
  254  chmod 2775 /opt/project/
  255  su - balulnt
  256  su - ba
  257  passwd ca
  258  su - ca
  259  3775 /opt/project/
  260  chmod 3775 /opt/project/
  261  su - ba
  262  su - ca
  263  useradd test
  264  su -  test
  265  usermod -g myproject ca
  266  su - ca
  267  su - ca
  268  useradd ca
  269  su - ca
  270  umask
  271  umask S
  272  umask s
  273  umask -S
  274  umask 0337
  275  umask _S
  276  umask -S
  277  grep -i -B 1 umask /etc/bashrc
  278  vi /etc/bashrc
  279  umask
  280  sourcd /etc/bashrc
  281  source /etc/bashrc
  282  umask
  283  vi /etc/bashrc
  284  exit
  285  umask
  286  source /etc/bashrc
  287  umask
  288  vi /etc/bash
  289  vi /etc/bashr
  290  vi /etc/bashrc
  291  su - balulnt
  292  pwconv
  293  cat pwconv
  294  mount -t ext4 -o acl /dev/rhel/home /opt/project/
  295  ll
  296  su - test
  297  grpck
  298  pwck
  299  cat /etc/group
  300  su -
  301  umask
  302  yum install tiger*
  303  mount /dev/sr0 /mnt/
  304  yum install tiger*
  305  vncserver
  306  ls -lah ~/.vnc/
  307  vncserver -list
  308  vncserver -kill :1
  309  mv ~/.vnc/xstartup ~/.vnc/xstartup.bekup
  310  vim ~/.vnc/xstartup
  311  cp /etc/X11/Xresources ~/.Xresources
  312  chmod +x ~/.vnc/xstartup
  313  vncserver
  314  vncserver -list
  315  cd /etc/systemd/system
  316  vim vncserver@.service
  317  systemctl daemon-reload
  318  systemctl start vncserver@1.service
  319  systemctl status vncserver@1.service
  320  systemctl enable vncserver@1.service
  321  systemctl status vncserver@1.service
  322  ssh -L 5901:127.0.0.1:5901 -N -f -l root 192.168.0.111
  323  systemctl start vncserver@1.service
  324  journalctl -xe
  325  ssh -L 5901:127.0.0.1:5901 -N -f -l edward 192.168.33.10
  326  ssh -L 5901:127.0.0.1:5901 -N -f -l edward 192.168.0.111
  327  ssh -L 5901:127.0.0.1:5901 -N -f -l root 192.168.0.111
  328  ssh -L 5901:127.0.0.1:5902 -N -f -l root 192.168.0.111
  329  ssh -L 5902:127.0.0.1:5902 -N -f -l root 192.168.0.111
  330  journalctl
  331  yum remove tiger*
  332  journalctl -xe
  333  man acl
  334  man getfacl
  335  sudo command
  336  cat /etc/sudoers
  337  less /etc/sudoers
  338  yum search tiger*
  339  systemctl enable --now cockpit.socket
  340  umount /opt/
  341  mount -o rw /dev/sr0 /opt/
  342  mount -o rw,loop /dev/sr0 /opt/
  343  cd /opt/
  344  ll
  345  umount /opt
  346  df -h
  347  touch 1
  348  ll
  349  yum history check-update
  350  yum history erase
  351  yum history
  352  yum history info
  353  yum history install
  354  yum history -install
  355  exit
  356  lsblk
  357  lsusb
  358  lsscsi
  359  uname -ra
  360  uname -r
  361  uname -a
  362  lmishell
  363  lspci -t
  364  modprobe foo
  365  lsmod
  366  ls -l /dev/hda1 /dev/psaux
  367  ls -l /dev/sda1
  368  udisksctl info -b /dev/sdb
  369  udisksctl info -b /dev/sda
  370  lsmod
  371  udevd
  372  w
  373  last
  374  last -h
  375  last -s
  376  last -S
  377  last -since
  378  last --since
  379  last --since 22:10
  380  last --fullnames balulnt
  381  last --fullnames root
  382  c
  383  vi ~/.bash_profile
  384  c
  385  e
  386  exit
  387  e
  388  g
  389  e
  390  lspci
  391  lspci -v
  392  e
  393  exit
  394  ps -u
  395  su - balulnt
  396  hostnamectl bala_test
  397  hostname bala_test
  398  hostname bala_test.server1.com
  399  vi /etc/hosts
  400  hostnamectl bala_testserver
  401  hostnamectl bala_testserver.example.com
  402  hostname bala_testserver.example.com
  403  hostname balatestserver.example.com
  404  hostnamectl balatestserver.example.com
  405  exit
  406  gnome-system-monitor
  407  yum history
  408  yum remove gnome*
  409  gnome-system-monitor
  410  yum install gnome*
  411  ps -eo pid,comm,%cpu,%mem --sort=-%cpu | head -n 5
  412  ps -eo pid,comm,%cpu,%mem --sort=-%mem | head -n 5
  413  hostnamectl bala-testserver
  414  hostnamectl bala-testserver.example.com
  415  hostnamectl set-hostname bala-testserver.example.com
  416  exit
  417  mv /etc/yum.repos.d/redhat.repo /etc/yum.repos.d/rhel7.5.repo
  418  less /etc/yum.repos.d/rhel7.5.repo
  419  rpm -q ssh
  420  rpm -q ssh*
  421  rpm -q sshd
  422  rpm -q openssh
  423  yum install yum-downloadonly
  424  yum install --downloadonly --downloaddir openssh
  425  yum install yum*
  426  yum install --downloadonly httpd
  427  yum r httpd
  428  yum install --downloadonly httpd
  429  ll
  430  vi /etc/yum.repos.d/rhel7.5.repo
  431  less /etc/yum.repos.d/rhel7.5.repo
  432  yum install httpd
  433  ps -eo pid,comm,%cpu,%mem --sort=-%mem | head -n 5
  434  ps -eo pid,comm,%cpu,%mem --sort=-%mem | head -n 10
  435  top -10
  436  top 10
  437  top
  438  less /proc/cpuinfo
  439  yum update httpd
  440  yum check-update
  441  Systemctl enable httpd
  442  systemctl enable httpd
  443  systemctl 0 httpd
  444  systemctl httpd 0
  445  systemctl httpd 1
  446  systemctl 1 httpd
  447  systemctl disable httpd
  448  systemctl enable httpd
  449  systemctl disable httpd
  450  top
  451  c
  452  systemctl status httpd.service
  453  lsblk
  454  free -m
  455  yum reinstall httpd
  456  yum update --security
  457  yum repo-list
  458  yum repolist
  459  c
  460  yum repolist
  461  yum provides httpd
  462  yum info httpd

  463  poweroff.target
  464  systemctl poweroff.target
  465  systemctl runlevel0.target
  466  systemctl isolate multi-user.target
  467  systemctl set-default runlevel3.target
  468  systemctl get-default
  469  reboot
  470  c
  471  systemctl get-default
  472  c
  473  emergency
  474  systemctl set-default emergency
  475  reboot
  476  systemctl default
  477  systemctl set-default runlevel3.target
  478  lsblk
  479  systemctl get-default
  480  journalctl -xb
  481  q
  482  fsck
  483  systemctl set-default runleveltarget
  484  systemctl set-default runlevel3.target
  485  mount -o rw,remount /
  486  systemctl set-default runlevel3.target
  487  /.autorelabel
  488  /.autorelable
  489  ./autorelable
  490  exit
  491  cd /
  492  ll
  493  tail /etc/passwd
  494  tail /etc/group
  495  c
  496  c
  497  source ~/.bash_profile
  498  c
  499  cd /
  500  ll
  501  less /boot/grub2/grub.cfg
  502  c
  503  cd /etc/default/
  504  ll
  505  vi grub
  506  less grub
  507  less /etc/grub.d
  508  vi /etc/grub.d/

  509  less /etc/
  510  visudo
  511  c
  512  update-grub
  513  grub-install
  514  grub2-install --boot-directory=/mnt/boot /dev/sda
  515  grub2-install --boot-directory=/mnt/ /dev/sda
  516  grub2-install /dev/sda
  517  lsblk
  518  grub2-install /dev/sda1
  519  c
  520  grub2-install /dev/sda
  521  c
  522  xchroot /sysroot
  523  chroot /sysroot
  524  ll
  525  c
  526  cd
  527  xchroot
  528  c
  529  ll
  530  c
  531  history
  532  su - balulnt
  533  cd /
  534  lls
  535  ll
  536  yum -y install cronie
  537  mount /dev/sr0 /mnt
  538  yum -y install cronie
  539  service crond status
  540  crontab -e
  541  grubby --default-kernel
  542  grubby --default-index
  543  c
  544  grubby --default-index
  545  grubby --default-kernel
  546  grubby --set-default /boot/vmlinuz-4.18.0-147.el8.x86_64
  547  grub --info=ALL
  548  grubby --info=ALL
  549  c
  550  grubby --info=ALL
  551  grub2-mkconfig -o /boot/grub2/grub.cfg
  552  c
  553  grub2-setpassword
  554  reboot
  555  su -
  556  grub-mkpasswd-pbkdf2
  557  history
  558  history >> history
  559  less history
  560  history > history.txt

Popular posts from this blog

script and validation for the lvm

Important concepts and bits

shell script to create and extending the volume