前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux基础命令1

linux基础命令1

作者头像
零月
发布2018-04-25 11:57:21
8060
发布2018-04-25 11:57:21
举报
文章被收录于专栏:从零开始的linux从零开始的linux

查看当前设备终端

# tty

/dev/pts/0

显示当前使用的shell

# echo ${SHELL}

/bin/bash

显示当前使用所使用的所有shell

# cat /etc/shells

/bin/sh

/bin/bash

/sbin/nologin

/bin/dash

/bin/tcsh

/bin/csh

查看命令

# which ls

alias ls='ls --color=auto'

/bin/ls

查看命令是内部还是外部命令

# type ls

ls is aliased to `ls --color=auto'

# type cat

cat is hashed (/bin/cat)

查看命令位置

# whereis ls

ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz

查看命令man文件

#whatis ls

ls (1) - list directory contents

ls (1p) - list directory contents

# man 1p ls

# man 1 ls

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2017-03-04,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 从零开始的linux 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档