Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 ./countdown 12
- 2 vim counter
- 3 vim countdown
- 4 chmod +x countdown
- 5 ./countdown 10
- 6 tar cvzf /root/archive.tgz /etc
- 7 history
- 8 grep '[[:space:]]' /etc/dnsmasq.conf
- 9 grep '[[:space:]]' /etc/dnsmasq.conf | sort
- 10 grep '[[:space:]]' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 11 useradd bob
- 12 find / -user bob
- 13 find / -user bob -type f
- 14 mkdir /root/userfiles; find / -user bob -type f -exec cp {} /root/userfiles/ \;
- 15 ls -a /root/userfiles/
- 16 ls -al /root/userfiles/
- 17 vim simple
- 18 grep -v '' simple
- 19 grep -v ' ' simple
- 20 grep '[[:space:]]' simple
- 21 history
- 22 vim simple
- 23 grep '[[:space:]]' simple
- 24 grep '^$' simple
- 25 grep -v '^$' simple
- 26 grep -v '^$' simple | grep -v '[[:space:]]'
- 27 grep -v '^$' simple | grep -v ' '
- 28 grep -v '^$' simple | grep -v '[[:space:]]' | sort
- 29 grep -v '^$' simple | grep -v '[[:space:]]' | sort > /root/sorted
- 30 history
- 31 vim countdown
- 32 chmod -x countdown
- 33 countdown
- 34 echo $PATH
- 35 ./countdown
- 36 ls -l countdown
- 37 chmod +x countdown
- 38 ./countdown
- 39 man let
- 40 echo $(( 2 * 8 ))
- 41 visudo
- 42 cd /etc/sudoers.d/
- 43 vim linda
- 44 which passwd
- 45 which usermod
- 46 which useradd
- 47 vim linda
- 48 useradd linda
- 49 passwd linda
- 50 su - linda
- 51 vim linda
- 52 su - linda
- 53 vim linda
- 54 su - linda
- 55 cd
- 56 ./countdown 12
- 57 cat /etc/passwd
- 58 cd /etc/skel/
- 59 ls
- 60 ls -a
- 61 vim /etc/login.defs
- 62 touch hello
- 63 cd
- 64 useradd bill
- 65 grep bill /etc/passwd
- 66 grep bill /etc/shadow
- 67 grep linda /etc/shadow
- 68 cd /
- 69 touch nologin
- 70 rm nologin
- 71 grep 1004 /etc/group
- 72 grep wheel /etc/group
- 73 groupadd sales
- 74 usermod -aG sales student
- 75 id student
- 76 lid -g sales
- 77 grep sales /etc/group
- 78 chage bill
- 79 cd
- 80 ./countdown 7
- 81 userdel --help
- 82 userdel bob
- 83 useradd bob
- 84 userdel -rf bob
- 85 ls -l /home
- 86 useradd bob
- 87 vim /etc/login.defs
- 88 cd /etc/skel/
- 89 touch newfile
- 90 groupadd profs
- 91 groupadd students
- 92 useradd --help | less
- 93 useradd -G profs anna
- 94 useradd -G profs anouk
- 95 for i in user{1..10}; do useradd $i; done
- 96 cat /etc/passwd
- 97 usermod -aG students lisa
- 98 usermod -aG students linda
- 99 cd
- 100 ls -l
- 101 touch afile
- 102 ls -l
- 103 chmod 640 afile
- 104 ls -l afile
- 105 cd /home/linda
- 106 touch rootfilee
- 107 su - linda
- 108 mkdir -p /data/profs
- 109 cd /data
- 110 ls -l
- 111 chown anna:profs profs
- 112 ls -l
- 113 cd profs
- 114 mkdir 2023
- 115 mkdir 2022
- 116 touch 2022/one
- 117 touch 2022/two
- 118 touch 2023/two
- 119 touch 2023/one
- 120 ls -l
- 121 chown -R anna:profs *
- 122 ls -l
- 123 chown -R g+x *
- 124 chmod -R g+x *
- 125 ls -l
- 126 cd 2022/
- 127 ls
- 128 ls -l
- 129 cd ..
- 130 chmod -R g-x *
- 131 chmod -R g+X *
- 132 ls -l
- 133 ls -l 2022/
- 134 history
- 135 su - anna
- 136 chmod g+s /data/profs
- 137 ls -ld /data/profs
- 138 su - anna
- 139 su - anouk
- 140 ls -ld .
- 141 chmod g+w .
- 142 su - anouk
- 143 chmod +t /data/profs
- 144 ls -ld /data/profs
- 145 su - anouk
- 146 cd /home
- 147 ls -l
- 148 chmod +t anouk
- 149 cd anouk
- 150 touch rootfile
- 151 ls -l rootfile
- 152 su - anouk
- 153 chmod -t .
- 154 touch removeme
- 155 chattr +i remove
- 156 chattr +i removeme
- 157 rm -f removeme
- 158 ls -l
- 159 lsattr
- 160 chattr -i removeme
- 161 rm -f removeme
- 162 history
- 163 poweroff
- 164 lsblk
- 165 exit
- 166 fdisk /dev/sda
- 167 lsblk
- 168 mkfs.ext4 /dev/sda3
- 169 vim /etc/fstab
- 170 mount -a
- 171 mkdir /myfile
- 172 mount -a
- 173 mv /myfile/ /myfiles
- 174 mount -a
- 175 mount
- 176 lsblk
- 177 df -h
- 178 findmnt
- 179 lsblk
- 180 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement