test -f /var/myapp/log
if [ $? = 1 ]
then echo "No file there!"
else echo "The log file is there"
fi
test -d /var/myapp/log
test -x /var/myapp/log
(( $x >= 15 ))
(( $x >15 ))
or [ $x -gt 15 ]
(( $x < 15 ))
or [ $x -lt 15 ]
(( $x = 15 ))
or [ $x -eq 15 ]
read -p "Zadej IP adresu BRANY (gateway): " IP_GW
if [ -z "$IP_GW" ] ; then
echo "ENTER PRESSED"
else
echo "SOME OTHER INPUT"
fi
- HOME
~~~~~~~~~~~~~~~
- OpenBSD
- NetBSD
- FreeBSD
- Linux
- Solaris
- Windows
~~~~~~~~~~~~~~~
- Git
- Ansible
- Atlassian
- Network tools
- Qemu
- Virtualbox
- Vim
- Tmux
- Mutt
- STar
~~~~~~~~~~~~~~~
- MySQL
- PostgreSQL
- Postfix
- OpenSSL
- tcpdump
- SSH
~~~~~~~~~~~~~~~
- Packet Filter
- IP Filter
~~~~~~~~~~~~~~~
- Bash
- web-dev
- Hacking
- LINUX DAYS