Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

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.

1 Answer

0 votes
by (36.8k points)

in .bashrc

lazytouch()

{

  touch $1

  open $1

}

then type

$ lazytouch anything.really

To know about Linux join the Linux training

 

Do check out the video below

 

Related questions

Browse Categories

...