Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost data]# history
- 1 exit
- 2 cd /
- 3 cd/
- 4 ls
- 5 cd /usr
- 6 ls
- 7 cd /
- 8 ls -ld /bin /sbin
- 9 cd /usr/local/
- 10 ls
- 11 cd /var
- 12 ls
- 13 cd log
- 14 ls
- 15 ls -lrt
- 16 cd /boot
- 17 ls
- 18 cd
- 19 exit
- 20 tar -cvf my_archive.tar /home
- 21 ls -l my_archive.tar
- 22 tar -tvf my_archive.tar
- 23 tar -xvf my_archive.tar
- 24 ls
- 25 rm -fr home
- 26 tar -czvf my_archive.tar.gz /home
- 27 tar -cjvf my_archive.tar.bz /home
- 28 tar -cJvf my_archive.tar.xz /home
- 29 ls -l
- 30 tar -xvf my_archive.tar -C /tmp/
- 31 ls /tmp
- 32 echo $PATH
- 33 export PATH=$PATH:/usr/local/bin
- 34 countdown 12
- 35 head /etc/passwd
- 36 head -5 /etc/passwd
- 37 tail /etc/passwd
- 38 head -5 /etc/passwd | tail -1
- 39 echo 1 > textfile
- 40 echo 2 >> textfile
- 41 cat textfile
- 42 tac textfile
- 43 cd /etc
- 44 grep 'lisa' *
- 45 grep 'lisa' * 2>/dev/null
- 46 ps aux | grep ssh
- 47 ps aux | grep -i ssh | grep -v grep
- 48 grep root *
- 49 grep root * 2>/dev/null
- 50 grep -l root * 2>/dev/null
- 51 grep -lR root * 2>/dev/null
- 52 grep root /etc/passwd
- 53 grep -A 5 root /etc/passwd
- 54 cd
- 55 vim regfile
- 56 grep 'bit' regfile
- 57 grep 'bi?t' regfile
- 58 grep -E 'bi?t' regfile
- 59 vim regfile
- 60 grep anna regfile
- 61 grep '^anna' regfile
- 62 grep 'anna$' regfile
- 63 grep '^anna$' regfile
- 64 vim regfile
- 65 grep 'anna\b' regfile
- 66 grep 'bi*t' regfile
- 67 grep 'b.*t' regfile
- 68 grep 'b.+t' regfile
- 69 grep -E 'b.+t' regfile
- 70 grep -E 'b.?t' regfile
- 71 grep -E 'b.\{3\}t' regfile
- 72 grep 'b.\{3\}t' regfile
- 73 egrep 'b.\{3\}t' regfile
- 74 man semanage-fcontext
- 75 man grep
- 76 cut -f 1 -d : /etc/passwd
- 77 cut -f 1 -d : /etc/passwd | head
- 78 tail /etc/passwd
- 79 cut -f 1 -d : /etc/passwd | head | sort
- 80 cut -f 1 -d : /etc/passwd | head | sort | tr [a-z] [A-Z]
- 81 cut -f 1 -d : /etc/passwd | head | sort | tr [a-m] [n-z]
- 82 cut -f 1 -d : /etc/passwd | head | sort | tr [:lower:] [:upper:]
- 83 sed -n 5p /etc/passwd
- 84 ls
- 85 sed -i s/bit/not/g regfile
- 86 cat regfile
- 87 sed -i -e '2d' regfile
- 88 sed -i -e '13d' regfile
- 89 echo hello >afile
- 90 echo hello >bfile
- 91 echo hello >cfile
- 92 echo hello >dfile
- 93 cat *file
- 94 for i in *file; do sed -i 's/hello/bonjour/g' $i; done
- 95 cat cfile
- 96 awk -F : '{ print $4 }' /etc/passwd
- 97 awk -F : '{ print $3 }' /etc/passwd
- 98 awk -F : '/linda/ { print $3 }' /etc/passwd
- 99 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 100 countdown 13
- 101 sort < /etc/services
- 102 grep -R root /proc
- 103 grep -R root /etc 2>/dev/null
- 104 grep -R root /etc &>/dev/null
- 105 ps aux | tee psfile | grep ssh
- 106 ls
- 107 cat psfile
- 108 find / -xtype l
- 109 history
- 110 history | grep awk
- 111 awk -F : '{ print $4 }' /etc/passwd
- 112 ssh sander@192.168.50.136
- 113 history
- 114 history -d 100
- 115 ls -a
- 116 less .bash_history
- 117 history -w
- 118 less .bash_history
- 119 yum install bash-completion
- 120 echo $HISTSIZE
- 121 env
- 122 LANG=ru_RU.UTF-8
- 123 ls --help
- 124 echo $PATH
- 125 bash
- 126 history | grep local
- 127 alias
- 128 alias help='echo how can i help you'
- 129 help
- 130 vim /etc/bashrc
- 131 su -
- 132 sander
- 133 echo 'hello
- 134 cd /etc/profile.d/
- 135 l;s
- 136 ls
- 137 cd
- 138 vim .bash_profile
- 139 vim .bash_logout
- 140 sleep 1000
- 141 bg
- 142 sleep 900 &
- 143 jobs
- 144 fg
- 145 while true; do true; done &
- 146 jobs
- 147 top
- 148 ps fax
- 149 ps -e -o pid,args --forest
- 150 ps -C java -L -o pid,tid,pcpu,state,nlwp,args
- 151 ps aux
- 152 ps aux --sort pmem | less
- 153 dd if=/dev/zero of=/dev/null &
- 154 top
- 155 cd /sys
- 156 ls
- 157 cd bus
- 158 ls
- 159 cd pu
- 160 cd cpu
- 161 ls
- 162 cd devices/
- 163 ls
- 164 pwd
- 165 ls cpu1
- 166 cat cpu1/online
- 167 echo 0 > cpu1/online
- 168 lscpu
- 169 top
- 170 killall dd
- 171 echo 1 > cpu1/online
- 172 lscpu
- 173 cd
- 174 sleep 1000
- 175 bg
- 176 ps aux | grep sleep
- 177 kill 51912
- 178 countdown 12
- 179 yum search nmap
- 180 yum search seinfo
- 181 yum provides */seinfo
- 182 useradd anna
- 183 su - anna
- 184 groupadd sales
- 185 usermod -aG sales anna
- 186 id anna
- 187 useradd -G sales lisa
- 188 mkdir -p /data/sales
- 189 cd /data
- 190 ls
- 191 ls -l
- 192 chgrp sales sales
- 193 ls -l
- 194 chmod 770 sales
- 195 su - lisa
- 196 ip a
- 197 ssh sander@192.168.50.136
- 198 ip a
- 199 ifconfig
- 200 man ifconfig
- 201 ip addr add dev ens33 10.0.0.10/24
- 202 ip a
- 203 ifconfig
- 204 ip route show
- 205 ping nu.nl
- 206 vim /etc/resolv.conf
- 207 nmtui
- 208 lsblk
- 209 ssh sander@192.168.50.136
- 210 yum install -y vsftpd
- 211 systemctl status vsftpd
- 212 systemctl start vsftpd
- 213 systemctl status vsftpd
- 214 systemctl enable vsftpd
- 215 systemctl status vsftpd
- 216 journalctl
- 217 journalctl -u sshd
- 218 journalctl --dmesg
- 219 history
- 116 history
- 117 alias
- 118 man ls
- 119 dircolors --helo
- 120 dircolors --help
- 121 sudo -i
- 122 vim countdown
- 123 countdown 12
- 124 echo $PATH
- 125 ./countdown 12
- 126 ls -l countdown
- 127 chmod +x countdown
- 128 ls -l countdown
- 129 ./countdown 12
- 130 cp countdown /usr/local/bin/
- 131 ls -ld /usr/local/bin
- 132 sudo cp countdown /usr/local/bin/
- 133 countdown 0
- 134 history
- 135 cat countdown
- 136 cd /var
- 137 ls -l log/messages
- 138 cd cache/
- 139 ls
- 140 pwd
- 141 ls -l ..
- 142 ls -l ../var/messages
- 143 ls -l ../log/messages
- 144 ls -l /var/log/messages
- 145 ls ../../usr/local/bin/
- 146 pwd
- 147 ls /usr/local/bin/
- 148 cd
- 149 cp countdown bin
- 150 ls -l
- 151 rm bin
- 152 cp countdown bin/
- 153 mkdir bin
- 154 cp countdown bin/
- 155 mkdir /tmp/sander
- 156 cp -a ~/.* /tmp/sander/
- 157 ls /tmp/sander
- 158 ls -a /tmp/sander
- 159 cp /etc/* /tmp/sander/
- 160 cp -R /etc/* /tmp/sander/
- 161 cp -R /etc/* /tmp/sander/ 2> /dev/null
- 162 echo hello
- 163 echo hello > hellofile
- 164 cat hellofile
- 165 ls
- 166 mv hello ola
- 167 ls
- 168 mv ola /tmp/
- 169 ls
- 170 ls -l
- 171 cat hellofile
- 172 ls -il hellofile
- 173 ln hellofile olafile
- 174 ls -il hellofile olafile
- 175 echo ola >> olafile
- 176 ls -il hellofile olafile
- 177 cat hellofile
- 178 ln -s olafile bonjourfile
- 179 ls -il hellofile olafile bonjourfile
- 180 cat bonjourfile
- 181 echo bonjour >> bonjourfile
- 182 ls -il hellofile olafile bonjourfile
- 183 rm olafile
- 184 ls -il hellofile olafile bonjourfile
- 185 cat bonjourfile
- 186 ln hellofile olafile
- 187 ls -il hellofile olafile bonjourfile
- 188 sudo find / -name "hosts"
- 189 sudo find / -name "*hosts*"
- 190 tail /etc/passwd
- 191 su - linda
- 192 find / -user linda
- 193 sudo find / -user linda 2>/dev/null
- 194 sudo find / -size +1G 2>/dev/null
- 195 sudo mkdir /root/linda; sudo find / -user linda -exec cp {} /root/linda/ \;
- 196 ls -la /root/linda
- 197 sudo ls -la /root/linda/
- 198 sudo -i
- 199 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement