小编wor*_*tor的帖子

为什么.sh文件中的“cd -”会打印地址

我使用“cd -”在文件夹之间切换。喜欢:

cd /etc/                                                                                                                          
cd -   
Run Code Online (Sandbox Code Playgroud)

但是为什么“cd -”会打印地址(如密码)?我怎样才能阻止它打印地址?

linux bash shell

4
推荐指数
1
解决办法
665
查看次数

linux cpu文件夹中文件的含义

文件夹中的文件是什么意思/sys/devices/system/cpu/cpu0/cache/index0?我在文件夹中看到这些文件:

coherency_line_size  number_of_sets           shared_cpu_list  size  ways_of_associativity
level                physical_line_partition  shared_cpu_map   type
Run Code Online (Sandbox Code Playgroud)
  1. 它们的含义是什么?
  2. 我怎么知道 L2 缓存是否共享。如果是这样,我怎么知道它与哪个 cpu 共享?
  3. index0 index1 .. index3 的含义是什么?index3 代表 L3 缓存,index2 代表 L2 缓存吗?

/sys/devices/system/cpu/cpu0/cache/index3有这些文件:

cache_disable_0      level                    shared_cpu_list  subcaches
cache_disable_1      number_of_sets           shared_cpu_map   type
coherency_line_size  physical_line_partition  size             ways_of_associativity
Run Code Online (Sandbox Code Playgroud)

为什么我在 index1 或 index2 中看不到子缓存?并且 shared_cpu_list 显示 0_7。是不是说这个缓存是和cpu0到cpu7共享的?

linux cpu cpu-cache

2
推荐指数
1
解决办法
2143
查看次数

标签 统计

linux ×2

bash ×1

cpu ×1

cpu-cache ×1

shell ×1