[ Web Proxy ]
URL:
Viewing: https://morvanzhou.github.io/tutorials/others/linux-basic/2-04-basic-command/ [Back]  [Original]

Linux nano cat - Linux | Python

Linux nano cat

: : 2017-10-12

, linux , . nano cat .

nano

nano linux . terminal , ~ touch Python . Python , nano .

Linux  nano  cat [Linux nano cat]

nano t.py .

$ nano t.py

, , .

Linux  nano  cat [Linux nano cat]

Ctrl + x . , y , , .

terminal , terminal python .

$ python t.py
This is a Python script!

( Python : Ubuntu Python2.7 Python3.5)

cat

cat (catenate) , . .

1

$ cat t.py
print("This is a Python script!")

2 >

$ cat t.py > t1.py
$ cat t1.py
print("This is a Python script!")

3 >

t.py t1.py t2.py, t2.py , print.

$ cat t.py t1.py > t2.py
$ cat t2.py
print("This is a Python script!")
print("This is a Python script!")

4 >>

t3 , This is t3. t2.py . >> t3 t2.py .

$ cat t3 >> t2.py
$ cat t2.py
print("This is a Python script!")
print("This is a Python script!")
This is t3.

: Facebook [Facebook] [] [] Twitter [Twitter]
, , . , Python , , .




[]

Linux

:



Email: morvanzhou@hotmail.com

© 2018 morvanzhou.github.io All Rights Reserved


Web Proxy Viewer  |  New URL  |  Original Page