Back
To create the file from a terminal I used the below command:
$ touch filename.py
To open the file I just created from the terminal, I then type...
$ open filename.py
I want to know if there is any command that does both...create and then open.
in .bashrc
lazytouch(){ touch $1 open $1}
lazytouch()
{
touch $1
open $1
}
then type
$ lazytouch anything.really
To know about Linux join the Linux training
Do check out the video below
31k questions
32.8k answers
501 comments
693 users