Thursday, January 7, 2016

history to practice for RHEL7 book 2(personal)

  812  date
  813  grep '^Jan *4 2[123]' /root
  814  grep '^Jan *4 2[123]' door.log
  815  pwd
  816  grep '^Jan *4 2[123]' door.log
  817  grep ^door
  818  mkdir logsss
  819  cp door.log logsss
  820  ls -lr logsss
  821  date
  822  grep '^Jan *4 2[234]*' /logsss/door.log
  823  which door.log
  824  cd logsss
  825  pwd
  826  grep '^Jan *4 2[234]*' /root/logsss/door.log
  827  $!
  828  $?
  829  cd
  830  man grep
  831  cat >>ashok123
  832  date
  833  ls -l | grep -i '* jan 4 23:*"
  834  ls -l | grep -i '* jan 4 23:*'
  835  ls -l
  836  ls -l | grep -i '* jan 4 23:13*' ashok123
  837  ls -l | grep -i '* jan 4 23:13*' ashok123 |cat
  838  vim /etc/hosts
  839  cd
  840  exit
  841  vim /etc/mod
  842  vim /etc/motd
  843  ssh ashok@localhost
  844  ssh localhost
  845  ssh ashok@localhost
  846  vim /etc/motd
  847  ssh ashok@localhost
  848  vim /etc/motl
  849  vim /etc/motd
  850  ssh ashok@localhost
  851  ping 192.168.10.110
  852  cat usr/shr/share/doc/ sos-3.2
  853  cd usr/shr/share
  854  cd /usr
  855  ls -l
  856  cd local
  857  ls -l
  858  cd share
  859  ls
  860  ls -l
  861  su ashok
  862  yum install python
  863  fdisk -l
  864  fdisk /dev/sdb
  865  df -h
  866  blkid /dev/sdb1
  867  mount  UUID="1f25b100-13bc-4f91-957a-4eea740bc9f1" /mnt
  868  cd/mnt
  869  cd /mnt
  870  ls
  871  mkdir practice
  872  ls
  873  touch i am practicing hard
  874  ls -ltr
  875  pwd
  876  cd /
  877  df -h /mnt
  878  unmount /mnt
  879  umount /mnt
  880  df -h /mnt
  881  cd /mnt
  882  ls
  883  ls -l
  884  cd
  885  mount /dev/mnt/sdb1 /mnt
  886  cd /mnt
  887  ls -l
  888  blkid /dev/mnt/sdb1 /mnt
  889  blkid /dev/sdb1 /mnt
  890  mount /dev/sdb1 /mnt
  891  cd mount
  892  cd /mnt
  893  ls -l
  894  fdisk
  895  umount  /dev/sdb1
  896  cd
  897  umount /dev/sdb1
  898  blkid /dev/sdb2
  899  atq
  900  at -l
  901  at -c
  902  mkdir home/my job
  903  mkdir home/myjob
  904  mkdir /home/myfile
  905  echo "date > /home/myfile | at now +3min
  906  echo "date > /home/myfile" | at now +3min
  907  atq
  908  at -c 1
  909  atq
  910  while [$atq | wc -l ) -gt 0];do sleep 1; done
  911  echo 'date > /home/myfile' | at now +3min
  912  while [$(atq | wc -l) -gt 0];do sleep 1; done
  913   while [$(atq | wc -l) -gt 0]; do sleep 1; done
  914   while [ $(atq | wc -l) -gt 0 ]; do sleep 1; done
  915  cat myfile
  916  pwd
  917  ls -ltr
  918  more anaconda-ks.cfg
  919  mount 192.168.10.110:/home/users /mnt
  920  ping 192.168.10.110
  921  touch best.$$
  922  ld -ltr
  923  ls -ltr
  924  echo "date > /var/tmp/myjob.txt" | at now +3min
  925  atq
  926  date
  927  ls -l /var/tmp/myjob.txt
  928  date
  929  atq
  930  atq | wc -l
  931  date
  932  at 19.45 echo hello
  933  at 19:45
  934  atq
  935  date
  936  at 19:45
  937  date
  938  at 19:48
  939  ls -l /var/tmp/myfile.2
  940  atq
  941  date
  942  ls -l /var/tmp/myfile.2
  943  crontab -eu ashok
  944  crontab -lu ashok
  945  ls -l /var/tmp/myhello.txxt
  946  date
  947  crontab -eu ashok
  948  ls -l /var/tmp/myhello.txxt
  949  crontab -lu ashok
  950  date
  951  ls -l /var/tmp/myhello.txxt
  952  crontab -lu ashok
  953  ls -l /var/tmp/myhello.txxt
  954  more /var/tmp/myhello.txxt
  955  crontab -lu ashok
  956  su - ashok
  957  more /etc/cron.d/sysstat
  958  sar
  959  df -h
  960  tmpwatch
  961  yum search tmpwatch
  962  ls -l /etc/*release*
  963  more /etc/os-release
  964  yum clean all
  965  ls -l /usr/lib/tmpfiles.d/*.conf
  966  more /usr/lib/tmpfiles.d/tmp.conf
  967  systemd-tmpfiles
  968  man 5 tmpfiles
  969  man tmpfiles
  970  yum search tmpfiles.
  971  man tmpfiles.d
  972  ps -ef | more
  973  top
  974  df -h
  975  ps -ef| more
  976  man ps
  977  ps -ef |more
  978  ps axo pid,comm,nice,time --sort=nice
  979  ps axo pid,comm,nice,time --sort=nice | more
  980  ps axo pid,comm,nice,time,cls --sort=nice | more
  981  pwd
  982  time du -sh *
  983  nice -n 15 time du -sh *
  984  nice -n 15 firefox
  985  top
  986  su - ashok
  987  ps -ef| grep 18729
  988  top
  989  ps axo pid,comm,nice --sort=nice
  990  ps axo pid,comm,nice --sort=nice | grep 18729
  991  renice -n -15 18729
  992  ps axo pid,comm,nice --sort=nice | grep 18729
  993  cat /proc/cpuinfo | grep -i processor
  994  grep -c '^processor' /proc/cpuinfo
  995  grep -i processor /proc/cpuinfo
  996  cd /home/ashok/lab2
  997  ls -l
  998  getfacl bestfile
  999  su - ashok
 1000  su  - kamal
 1001  yum install cifs-utils sambaclient
 1002* yum install -y smb-client
 1003  yum install -ysamba-client
 1004  yum install -y samba-client
 1005  smbclient -L //192.168.10.2
 1006  mount -t cifs -u ashok //192.168.10.2/Users/suvi/Desktop/ashok /mnt
 1007  mount -t cifs -o ashok //192.168.10.2/Users/suvi/Desktop/ashok /mnt
 1008  mount -t cifs //192.168.10.2/Users/suvi/Desktop/ashok /mnt
 1009  df -h /mnt
 1010  cd /mnt
 1011  ls
 1012  mkdir test
 1013  mkdir best
 1014  touch creating files here
 1015  mkdir /cifsshare
 1016  mount -t cifs -o username=ashok //192.168.10.2/Users/suvi/Desktop/ashok /cifsshare
 1017  ls -ld /cifsshare
 1018  su - ashok
 1019  chmod g+w /cifsshare
 1020  su - ashok
 1021  chmod o+w /cifsshare
 1022  su - ashok
 1023  mount -o remount /cifsshare/
 1024  su - ashok
 1025  chmod -R 775 /cifsshare/
 1026  ls -ld /cifsshare/
 1027  history
[root@private mnt]#

No comments:

Post a Comment