unix中点号的不同意义

在unix中,点号根据不同应用有三种含义:
1、表示当前目录。如果配置文件中没有把当前目录加入用户默认路径,会出现这样的情况:
#ls -l
-rw-r--r--   1 root     other       9866 Feb  9 01:49 coreadm.tx
-rw-r--r--   1 root     other       6851 Feb  9 01:49 nohup.txt
drwx------   2 n2kuser  staff        512 Jan  5 01:42 nsmail
-rw-r--r--   1 root     other       9542 Feb  9 01:49 pgrep.txt
-rw-r--r--   1 root     other       3953 Feb  9 01:52 plimit.txt
-rw-r--r--   1 root     other       7174 Feb  9 01:51 pmap.txt
-rw-r--r--   1 root     other      12200 Feb  9 01:50 prstat.txt
-rw-r--r--   1 root     other      21145 Feb  9 01:49 truss.txt
-rw-r--r--   1 root     other       7367 Feb  9 01:51 vmstat.txt
#more  truss.txt
cat: cannot open truss.txt
#more  ./truss.txt 就会显示出文件内容。
2、表示隐藏文件。
文件名前面有一个点号,这个文件会被隐藏。如用户的.profile文件
3、表示在当前shell执行文件,前面已说过

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值