특정 계정으로 ssh 에 접속을 한뒤
ls 명령어로 파일 리스트를 보려고 하는데
통일된 회색(?) 으로 보입니다.
su 계정 으로 다시 접속하게되면
권한에 따라 색이 다르게 보이는데
이유가 뭘까요
파일 첨부하였습니다.
alias ls = 'ls --color=auto' 는 이미 추가돼있는 상태입니다.
조건문 내의 ls --color=auto 외에
하단에 동일 내용을 추가하니 해결됐습니다.
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
해당 조건때문인듯한데.
뭘 의미하는걸까요..
///////
아아.. 수정 후
source .bashrc 를 해서 적용된거였습니다.
문제 해결이 안됏네요..
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
.bashrc 파일 수정.
alias ls = 'ls --color=auto' 는 이미 추가돼있는 상태입니다.
조건문
조건문 내의 ls --color=auto 외에
하단에 동일 내용을 추가하니 해결됐습니다.
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
해당 조건때문인듯한데.
뭘 의미하는걸까요..
///////
아아.. 수정 후
source .bashrc 를 해서 적용된거였습니다.
문제 해결이 안됏네요..
댓글 달기