日期:2014-05-16  浏览次数:20589 次

看到这个文件了,但我不知道路径


网上说打开那个bash_profile  修改path 为PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin  但是我找不到bash_profile的文件路径(尽管我看到他了)。 

     我干这些事主要是为了解决这个问题   bash: Samba: command not found   samba 服务无法启动
顺带附图一张,求大神出没哇,看看能否帮帮小弟。。






linux?samba服务开不起

------解决方案--------------------
1 查看路径

user@ubuntu:~$ pwd
/home/user


2 重启samba服务
user@ubuntu:~$ sudo /etc/init.d/smbd restart



------解决方案--------------------
.bash_profile是隐藏文件,需要用-a参数才可以看到。

比如:


ll -a

------解决方案--------------------
bash_profile前面还有个.
------解决方案--------------------
cd
ls -la 
------解决方案--------------------
 grep bash_profile