Linux 环境变量设置和文件查找操作 环境变量 创建变量和读取变量的值 $ declare tmp $ declare tmp $ echo $tmp 环境变量设置 .profile 可以用 ls -a 查看 cd /home/shiyanlou ls -a .profile 只对当前用户永久生效。而写在 /etc/profile 里面的是对所有用户永久生效,所以如果想要添加一个永久生效的环境变
实验楼《Linux 基础入门》第四节 Linux 目录结构及文件基本操作笔记 Linux 目录结构 Linux 文件基本操作 新建空白文件 $ touch test 新建目录 $ mkdir mydir $ mkdir -p father/son/grandson 复制文件 $ cp test father/son/grandson 复制目录 $ cp -r father family # -r