I am using the following 2 commands to create a 0B file and set its extn to 644
touch filename.ext chmod 777 filename.txt
My question is that w
touch filename.ext && chmod 777 $_
$_ is the most recent parameter
but as others have said 777 isn't a good idea