Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@linfun ~]# history
- 1 exit
- 2 tar cvf etc.tar /etc
- 3 ls -l
- 4 tar czvf etc.tgz /etc
- 5 ls -l
- 6 tar cjvf etc.tgz /etc
- 7 ls -l
- 8 tar cJvf etc.tar.xz /etc
- 9 ls -l
- 10 ls
- 11 tar -tvf etc.tgz
- 12 mkdir /extracted; tar -xvf etc.tgz -C /extracted/
- 13 ls -l /extracted/
- 14 ls -l /extracted/etc/
- 15 echo $PATH
- 16 ln /usr/local/bin/countdown /usr/bin/countdown
- 17 countdown 8
- 18 mkdir /tmp/files/videos
- 19 mkdir --help
- 20 mkdir -p /tmp/files/videos /tmp/files/photos /tmp/files/pictures
- 21 tree /tmp
- 22 tree /tmp/files/
- 23 cp /etc/[a-c]* /tmp/files/
- 24 cd /tmp/files/
- 25 ls
- 26 mv [ab]* photos/
- 27 mv c* videos/
- 28 tree
- 29 man find
- 30 find /etc -size +1000c -exec ls -l {} \;
- 31 find /etc -size -1000c -exec cp {} /tmp/files/pictures/ \;
- 32 tree
- 33 pwd
- 34 ln -s /var .
- 35 ls
- 36 ls -l
- 37 tar czvf home /home
- 38 ls -l
- 39 file home
- 40 gunzip home
- 41 gunzip --help
- 42 mkdir /tmp/archive; tar xvf home -C /tmp/archive
- 43 ls -l /tmp/archive/
- 44 ls -l /etc/hosts
- 45 ls -il /etc/hosts
- 46 man find
- 47 find / -inum 33621468
- 48 #find / -inum 33621468 -exec rm -f {} \;
- 49 find / -name "[a-c]*
- 50 "
- 51 cd /etc
- 52 ls [a-c]*
- 53 ls -d [a-c]*
- 54 cd
- 55 countdown 12
- 56 vimtutor
- 57 vim myfile
- 58 less /var/log/messages
- 59 head /etc/passwd
- 60 head -3 /etc/passwd
- 61 tail /etc/passwd
- 62 tail /etc/passwd | head -1
- 63 cat myfile
- 64 tac myfile
- 65 which passwd
- 66 cat /bin/passwd
- 67 reset
- 68 strings /bin/passwd
- 69 xxd /bin/passwd
- 70 cd /etc
- 71 grep lisa *
- 72 grep lisa * 2>/dev/null
- 73 grep -i lisa * 2>/dev/null
- 74 grep -i lisa * 2>/dev/null | grep -v Localisa
- 75 grep -il lisa * 2>/dev/null
- 76 cd
- 77 dnf install -y git
- 78 git clone https://github.com/sandervanvugt/cka
- 79 cd cka
- 80 grep 'spec' *
- 81 grep 'spec' rolling.yaml
- 82 grep 'spec' -A 5 rolling.yaml
- 83 cd
- 84 vim regexfile
- 85 cat regexfile
- 86 grep '^lea' regexfile
- 87 grep '^anna' regexfile
- 88 grep 'anna$' regexfile
- 89 grep '^anna$' regexfile
- 90 grep '^anna\b' regexfile
- 91 grep '^anna' regexfile
- 92 cat regexfile
- 93 grep 'b.*t' regexfile
- 94 echo bot >> regexfile
- 95 cat regexfile
- 96 grep 'bo+t' regexfile
- 97 grep -E 'bo+t' regexfile
- 98 grep -E 'bo?t' regexfile
- 99 grep 'bo\{2\}t' regexfile
- 100 grep 'boot' regexfile
- 101 man semanage-fcontext
- 102 cut -d : -f 1 /etc/passwd
- 103 tail /etc/passwd
- 104 cut -d : -f 1 /etc/passwd
- 105 cut -d : -f 6 /etc/passwd
- 106 cut -d : -f 3 /etc/passwd
- 107 cut -d : -f 3 /etc/passwd | sort
- 108 cut -d : -f 3 /etc/passwd | sort -n
- 109 ls -l | sort
- 110 ls -l | sort -k 8
- 111 ls -l | sort -k 9
- 112 echo hello
- 113 echo hello | tr [:lower"
- 114 echo hello | tr [:lower:] [:upper:]
- 115 echo hello | tr [a-l] [m-z]
- 116 sed -n 5p /etc/passwd
- 117 sed -i 's/anna/ANNA/g' regexfile
- 118 cat regexfile
- 119 sed -i -e '2d' regexfile
- 120 cat regexfile
- 121 echo hello 1.txt
- 122 for i in {1..9}; do echo $i; done
- 123 for i in {1..9}; do echo hello > $i.txt; done
- 124 ls
- 125 for i in *txt; do sed -i 's/hello/break/g' $i; done
- 126 cat 6.txt
- 127 cat 3.txt
- 128 history
- 129 awk -F : '/lisa/ { print $4 }' /etc/passwd
- 130 grep lisa /etc/passwd | cut -d : -f 4
- 131 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 132 man troff
- 133 countdown 4
- 134 head -5 /etc/passwd | tail -1
- 135 sed -n 5p /etc/passwd
- 136 ps aux | awk '{ print $1 }'
- 137 history
- 138 grep -l '^root' /etc/*
- 139 grep -l '^root' /etc/* 2>/dev/null
- 140 grep '^...$' /etc/* 2>/dev/null
- 141 vim regexfile
- 142 grep 'alex\b' regexfile
- 143 grep '^...$' /etc/* 2> greperrors.txt
- 144 cat greperrors.txt
- 145 man grep
- 146 cat /etc/services
- 147 sort < /etc/services
- 148 sort /etc/services
- 149 ls > myfile
- 150 cat myfile
- 151 who
- 152 who > myfile
- 153 cat myfile
- 154 ls >> myfile
- 155 cat myfile
- 156 grep -R root /proc
- 157 grep -R root /proc 2>/dev/null
- 158 grep -R root /etc 2>/dev/null
- 159 grep -R root /etc &>/dev/null
- 160 grep -R root /etc &> myfile
- 161 ps aux
- 162 ps aux | wc
- 163 ps aux | grep ssh
- 164 ps aux | grep ssh | grep -v grep
- 165 ps aux | tee psfile | grep ssh | grep -v grep
- 166 cat psfile
- 167 history
- 168 exit
- 169 history
- 170 cat .bash_history
- 171 useradd linda
- 172 echo password | passwd --stdin linda
- 173 history -d 173
- 174 grep -E 'bo?t' regexfile
- 175 who
- 176 man grep
- 177 touch kugiugiuguiiuguigiugigigihwgbiftuydtrsresxfgchjytsrthxtyjchkuvgc
- 178 ls -l
- 179 rm -f kugiugiuguiiuguigiugigigihwgbiftuydtrsresxfgchjytsrthxtyjchkuvgc
- 180 users
- 181 nmcli connection show ens33
- 182 dnf install bash-completion
- 183 env
- 184 echo $PATH
- 185 echo $SHELL
- 186 echo $LANG
- 187 ls --help
- 188 echo $LANG
- 189 export LANG=fr_FR.UTF-8
- 190 ls --help
- 191 export LANG=es_ES.UTF-8
- 192 ls --help
- 193 man ls
- 194 alias
- 195 alias english='export LANG=en_US.UTF-8'
- 196 english
- 197 vim /etc/bashrc
- 198 vim /etc/profile
- 199 cd /etc/profile.d/
- 200 ls
- 201 vim colorls.sh
- 202 cd
- 203 while true; do true; done &
- 204 sleep 3600
- 205 bg
- 206 jobs
- 207 fg
- 208 top
- 209 while true; do true; done &
- 210 top
- 211 ps aux | grep bash
- 212 ps aux
- 213 ps aux | grep '-bash'
- 214 ps aux | grep -- '-bash'
- 215 ps aux | grep -- '-bash' | awk '$3 > 40'
- 216 ps aux | grep -- '-bash' | awk '$3 > 40 { print $2 }'
- 217 kill $(ps aux | grep -- '-bash' | awk '$3 > 40 { print $2 }')
- 218 history
- 219 cd /
- 220 ls -l
- 221 cd /home/lisa/
- 222 touch rootfile *
- 223 su - lisa
- 224 cd
- 225 useradd anna
- 226 groupadd sales
- 227 usermod -aG sales anna
- 228 usermod -aG sales linda
- 229 mkdir -p /data/sales
- 230 ls -l /data/sales
- 231 ls -ld /data/sales
- 232 chown anna:sales /data/sales
- 233 ls -ld /data/sales
- 234 chmod 770 /data/sales
- 235 su - linda
- 236 mount /dev/sda1 /mnt
- 237 mount
- 238 cd /mnt
- 239 ls
- 240 journalctl
- 241 systemctl status sshd
- 242 journalctl -xb
- 243 cd /var/log
- 244 ls
- 245 ls -lrt
- 246 tail messages
- 247 mount
- 248 umount /mnt
- 249 cd
- 250 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement