Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to check folxder ezist using bash

#!/bin/bash

if [ -d /tmp/test ]

then 

echo “File exists”

fi
Comment

how to check folxder ezist using bash

#!/bin/bash

if [ -f /tmp/test.txt ]

then

echo “File exists”

fi
Comment

PREVIOUS NEXT
Code Example
Shell :: telnet in shell script 
Shell :: android mobile as webcam ubuntu 
Shell :: how to edit etc/hosts linux error readonly 
Shell :: pip uninstall virtualenv bash: /usr/bin/pip: /usr/bin/python: bad interpreter: No such file or directory 
Shell :: ssh allow password login subnet 
Shell :: where does pgadmin save backups in ubuntu 
Shell :: Wrong number of arguments for specified --cluster sub command 
Shell :: Permission denied (publickey). /usr/local/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?) 
Shell :: windows loader modified uninstall other cracks 
Shell :: bash if m1 or intel 
Shell :: to set a custom message explaining the reason for the reboot using systemctl 
Shell :: siege add autorizartion 
Shell :: delete file kali 
Shell :: step9 pgadmin ubuntu 20.04 
Shell :: Delete fist line in a file 
Shell :: cht.sh install 
Shell :: how to download octave in ubuntu 
Shell :: bash if else regex 
Shell :: ssh key location windows 
Shell :: wsl2 config file 
Shell :: mysql password inline cli 
Shell :: debian logrotate mail.log monatly 
Shell :: run powershell 64bit 
Shell :: send file between two remote hostsr linux 
Shell :: install htop sudo add-apt-repository universe 
Shell :: how to install ConfigServer Mail Manage in whm? 
Shell :: ex: push a new local repository to github. 
Shell :: gitlab ssh two factorn recovery 
Shell :: remote: Permission to lokeshr001/MotoChatPlugin.git denied to Lokesh003Coding. 
Shell :: bash ps3 newline 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =