output
linux fedora 24 source 读取 配置文件 例如 profile
input
鸟哥-鸟哥的Linux私房菜 基础学习篇 3ed|321
algo
source profile
or
. profile
案例
cd ~
sed '2i echo "bash_profile"' .bash_profile -i
. .bash_profile
会出现bash_profile
本文介绍在 Linux Fedora 24 中如何使用命令行工具编辑配置文件,如 profile 或 .bash_profile,通过具体案例展示了如何插入文本到指定位置。
linux fedora 24 source 读取 配置文件 例如 profile
鸟哥-鸟哥的Linux私房菜 基础学习篇 3ed|321
source profile
or
. profile
案例
cd ~
sed '2i echo "bash_profile"' .bash_profile -i
. .bash_profile
会出现bash_profile

被折叠的 条评论
为什么被折叠?