Check if file exists and is writable by the current process
Returns an exit code of 0 if the file is writable by the current process.
Authored by: Sidratul MuntahaBrought to you by Warp, a free terminal reimagined to work like a modern app.
file
Command
Copy
[[ -w file ]]
Tags
Edit in GitHub
Copied