LinuxCommandLinx -- 1

  • pwd 当前工作目录
  • cd 切换目录
  • cd - 返回上一次工作目录
  • cd ~username 切换到某一用户home目录
  • . 当前目录
  • .. 父目录
  • ls -al a: 显示所有文件, l: 列表格式
  • cat -n
  • less
  • head -n
  • tail -fn
  • file 查看文件类型
# 查看文件类型
[admin@localhost ~]$ file hello.txt
hello.txt: ASCII text 

LinuxCommandLinx -- 1_第1张图片
更正:d 表示目录

LinuxCommandLinx -- 1_第2张图片
less

你可能感兴趣的:(LinuxCommandLinx -- 1)