03-linux命令

(1)

   ls         查看目录文件
   ls -la    查看所有目录,以及隐藏文件
(2)文件夹操作

  mkdir s13      创建s13空文件夹

    rmdir  s13     删除s13空文件夹

  cd s13           进入s13文件夹

  cd .               当前目录

  cd ..              上层目录

    mv  s13   s13_hehe           修改s13文件名为s13_hehe

(3)执行有关python的命令

  touch first.py                 创建python脚本文件

  vi first.py                       打开first.py脚本

  按下字母i  进入编辑模式,写入如下代码

  print('Hello,linux')

  按下字母esc,退出编辑模式,输入 :wq! 命令,保存退出vi模式

  linux内置python解释器

  python first.py              执行python脚本

猜你喜欢

转载自www.cnblogs.com/ls13691357174/p/9779102.html
今日推荐