Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 ls
- 2 exit
- 3 tar cvzf archive.tgz /etc
- 4 tar tvf archive.tgz
- 5 history
- 6 grep -v '^$' /etc/dnsmasq.conf
- 7 grep -v '^$' /etc/dnsmasq.conf | sort
- 8 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 9 useradd bob
- 10 find / -user bob
- 11 find / -user bob -type f
- 12 mkdir /root/userfiles; find / -user bob -type f -exec cp {} /root/userfiles/ \;
- 13 ls -al /root/userfiles/
- 14 history
- 15 ls -ld /etc/sudo*
- 16 visudo
- 17 vim /etc/sudoers.d/bob
- 18 tail -1 /etc/passwd
- 19 su - bob
- 20 passwd bob
- 21 su - bob
- 22 cat /etc/sudoers.d/bob
- 23 id student
- 24 history
- 25 visudo
- 26 exit
- 27 history
- 28 su - lisa
- 29 grep lisa /etc/sudoers
- 30 cat /etc/passwd
- 31 head /etc/passwd
- 32 useradd --help | less
- 33 useradd bill -p password
- 34 tail -1 /etc/shadow
- 35 tail -5 /etc/shadow
- 36 echo password | passwd --stdin bill
- 37 tail -5 /etc/shadow
- 38 vim /etc/login.defs
- 39 useradd -p password peter
- 40 su - student
- 41 cd /etc/skel/
- 42 ls -a
- 43 touch hellefile
- 44 useradd bea
- 45 ls -l /home/bea
- 46 ls -al /home/bea
- 47 id lisa
- 48 id student
- 49 groupadd sales
- 50 usermod -aG sales lisa
- 51 usermod --help
- 52 usermod -G wheel lisa
- 53 id lisa
- 54 usermod -aG sales lisa
- 55 id lisa
- 56 exit
- 57 chage --help
- 58 chage -l lisa
- 59 chage -M 99 lisa
- 60 chage -l lisa
- 61 chage lisa
- 62 /home/student/countdown 15
- 63 vim /etc/login.defs
- 64 cd /etc/skel/
- 65 touch newfile
- 66 vim /etc/default/useradd
- 67 for i in anna anouk lisa linda; do useradd $i; done
- 68 for i in anna anouk lisa linda; do echo password | passwd --stdin $i; done
- 69 groupadd profs
- 70 groupadd students
- 71 usermod -aG profs anouk
- 72 usermod -aG profs anna
- 73 usermod -aG students linda
- 74 usermod -aG students lisa
- 75 ls -l /etc/hosts
- 76 cd /tmp
- 77 echo hello > hellofile
- 78 chown linda hellofile
- 79 chmod 077 hellofile
- 80 ls -l hellofile
- 81 su - linda
- 82 cd
- 83 cd /home/linda
- 84 touch lindafile
- 85 ls -l lindafile
- 86 echo linda > lindafile
- 87 su - linda
- 88 ls -l
- 89 chmod 640 lindafile
- 90 su - linda
- 91 cd
- 92 cd /tmp
- 93 mkdir testdir
- 94 touch testdir/file{1..10}
- 95 ls -l testdir/
- 96 chmod --helo
- 97 chmod --hel
- 98 chmod -R +x testdir/
- 99 ls -l testdir/
- 100 chmod -R -x testdir/
- 101 mkdir testdir/subdir
- 102 chmod -R +X testdir/
- 103 ls -ld testdir/
- 104 ls -l testdir/
- 105 cd
- 106 mkdir -p /data/profs /data/students
- 107 ls -l /data
- 108 chown :profs /data/profs
- 109 ls -l /data
- 110 chgrp students /data/students
- 111 ls -l /data
- 112 chmod 770 /data/students
- 113 ls -l /data
- 114 chmod g+w,o-rx /data/profs
- 115 ls -l /data
- 116 su - anna
- 117 chmod g+s /data/profs
- 118 ls -l /data
- 119 su - anna
- 120 su - anouk
- 121 chmod +t /data/profs
- 122 ls -l /data
- 123 su - anouk
- 124 umask
- 125 /home/student/countdown 15
- 126 mkdir -p /data/students /data/profs
- 127 ls /data
- 128 cd /data
- 129 chmod 770 *
- 130 ls -l
- 131 umask
- 132 cd profs
- 133 umask 002
- 134 touch rootfile
- 135 ls -l rootfile
- 136 lsblk
- 137 poweroff
- 138 lsblk
- 139 cat /proc/partitions
- 140 fdisk /dev/sda
- 141 lsblk
- 142 mkfs.xfs /dev/sda3
- 143 mount /dev/sda3 /mnt
- 144 cd /mnt
- 145 touch afile
- 146 cd
- 147 vim /etc/fstab
- 148 mount -a
- 149 mkdir /files
- 150 mount -a
- 151 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement