Back

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

How do I create the file from a terminal I type the following.

$ touch filename.py

How to open a file I just created from each terminal, I then type.

$ open filename.py

I wanted to know if there exists a command that does both the create and then open.

1 Answer

0 votes
by (36.8k points)

The .bashrc

lazytouch()

{

  touch $1

  open $1

}

then type

$ lazytouch anything.really

Master end-to-end Data Science through Data Science Online Courses

Related questions

Browse Categories

...