Operator | Description |
[ -a FILE ] | File varsa true döner. |
[ -b FILE ] | File varsa ve özel bir dosya ise true döner. Örnek RAM,Driver atanmışsa. veya fifo da olabilir. |
[ -c FILE ] | File varsa ve karekter özel bir dosya ise true döner. Örneğin bir char karşılık 8 bitlik binary yazma formatı varsa /dev/stdin /dev/stdout gibi |
[ -d FILE ] | File varsa ve bir dizinse true döner. |
[ -e FILE ] | File varsa true döner. |
[ -f FILE ] | File varsa ve düzeni varsa true döner. Bir formata sahipse. |
[ -g FILE ] | File varsa ve SGID biti aktifse true döner. Normal dosya yetkisi -rwxr-xr-x SGID biti -rwxr-sr-x , işlem yapıldığında user değil group yetkileri ile çalışır. |
[ -h FILE ] | File varsa ve sembolik bir bağlantısı varsa yani lnk uzantısı belirtiyorsa true döner. |
[ -k FILE ] | File varsa ve yapışkan biti açıksa (sticky) true döner. -rwxr-xr-t veya drwxrwxrwt olabilir. /tmp için kullanılabilir. |
[ -p FILE ] | File varsa ve pipeline yani fifo ise true döner. |
[ -r FILE ] | File varsa ve okuma iznide varsa true döner. |
[ -s FILE ] | File vardır ve içeriği boş değilse true döner. |
[ -t FD ] | File varsa ve FD ise true döner.(File descriptor) /proc/PID/fd/ yolundan erişilebilinir. |
[ -u FILE ] | File varsa ve SUID biti ayarlanmışsa true döner. -rwsr-xr-x |
[ -w FILE ] | File vardır ve yazma izni varsa true döner. |
[ -x FILE ] | File vardır ve execute çalıştırma yapılıyorsa true döner. |
[ -O FILE ] | File varsa ve kontrol eden usera ait ise true döner. |
[ -G FILE ] | File varsa ve kontrol edenin grubunda ise true döner. |
[ -L FILE ] | File varsa ve sembolik bir bağlantıysa true döner. Örnek .lnk dosyası gibi farklı bir yolu dizeyi işaret ediyorsa. |
[ -N FILE ] | File varsa ve en son okuma yapıldıktan sonra file değiştirilmiş düzenlenmiş ise true döner. |
[ -S FILE ] | File varsa ve bir socket ise true döner. |
Categories: Bash language
19 Comments
เช่ารถตู้พร้อมคนขับ · 13/10/2024 at 07:56
… [Trackback]
[…] Find More on to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
. · 05/11/2024 at 10:29
… [Trackback]
[…] Read More to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
ปีเตอร์แพน เกาะกูด · 11/11/2024 at 04:36
… [Trackback]
[…] Information to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
som777 · 12/11/2024 at 21:36
… [Trackback]
[…] Info to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
cat888 · 13/11/2024 at 04:57
… [Trackback]
[…] Read More here to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
Destination Wedding in France · 06/12/2024 at 03:58
… [Trackback]
[…] Info to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
Betflix1688 · 08/12/2024 at 23:25
… [Trackback]
[…] Read More to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
brand new disposable vape not working · 17/12/2024 at 21:19
… [Trackback]
[…] Read More Information here to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
สล็อต PG เล่นฟรีไม่มีจำกัด ไม่ต้องฝากเงิน · 19/12/2024 at 04:50
… [Trackback]
[…] Read More on on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
Massage · 31/12/2024 at 04:36
… [Trackback]
[…] Find More Information here to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
โคมไฟ · 07/01/2025 at 02:24
… [Trackback]
[…] Read More on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
rich89bet · 14/01/2025 at 05:44
… [Trackback]
[…] Here you will find 4630 additional Info on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
เว็บพนันออนไลน์เกาหลี · 21/01/2025 at 10:52
… [Trackback]
[…] Read More here on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
แทงบอลออนไลน์เกาหลี · 22/01/2025 at 03:44
… [Trackback]
[…] Info to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
betflix wallet · 07/02/2025 at 04:32
… [Trackback]
[…] Read More to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
สีพ่นรถยนต์ · 07/02/2025 at 06:26
… [Trackback]
[…] Here you can find 14122 additional Info on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
ของพรีเมี่ยม · 15/02/2025 at 02:40
… [Trackback]
[…] Find More Info here on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
สล็อตออนไลน์เกาหลี · 20/02/2025 at 04:43
… [Trackback]
[…] Information to that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]
couples massage · 26/02/2025 at 04:18
… [Trackback]
[…] Information on that Topic: durukanbal.com/2021/01/27/bash-if-comparison-operators/ […]