"-bash: ll: command not found"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<source lang='console'>
==문제상황==
<syntaxhighlight lang='console'>
# ll
# ll
-bash: ll: command not found
-bash: ll: command not found
</source>
</syntaxhighlight>


<source lang='bash'>
==조치==
<syntaxhighlight lang='bash'>
echo "alias ll='ls -alF'" >> ~/.bashrc
echo "alias ll='ls -alF'" >> ~/.bashrc
source ~/.bashrc
syntaxhighlight ~/.bashrc
</source>
</syntaxhighlight>


<source lang='console'>
==예시==
<syntaxhighlight lang='console'>
root@zetawiki:~# ll
root@zetawiki:~# ll
-bash: ll: command not found
-bash: ll: command not found
root@zetawiki:~# echo "alias ll='ls -alF'" >> ~/.bashrc
root@zetawiki:~# echo "alias ll='ls -alF'" >> ~/.bashrc
root@zetawiki:~# source ~/.bashrc
root@zetawiki:~# syntaxhighlight ~/.bashrc
root@zetawiki:~# ll
root@zetawiki:~# ll
total 44
total 44
25번째 줄: 28번째 줄:
drwxr-xr-x  2 root root  4096 Mar 19 08:40 .vim/
drwxr-xr-x  2 root root  4096 Mar 19 08:40 .vim/
-rw-------  1 root root 12100 Mar 20 01:36 .viminfo
-rw-------  1 root root 12100 Mar 20 01:36 .viminfo
</source>
</syntaxhighlight>
 
==같이 보기==
* [[리눅스 ll]]
 
[[분류: bash]]

2020년 11월 2일 (월) 02:37 기준 최신판

1 문제상황[ | ]

Console
Copy
# ll
-bash: ll: command not found

2 조치[ | ]

Bash
Copy
echo "alias ll='ls -alF'" >> ~/.bashrc
syntaxhighlight ~/.bashrc

3 예시[ | ]

Console
Copy
root@zetawiki:~# ll
-bash: ll: command not found
root@zetawiki:~# echo "alias ll='ls -alF'" >> ~/.bashrc
root@zetawiki:~# syntaxhighlight ~/.bashrc
root@zetawiki:~# ll
total 44
drwx------  5 root root  4096 Mar 20 01:37 ./
drwxr-xr-x 22 root root  4096 Mar 13 15:34 ../
-rw-------  1 root root  2943 Mar 19 09:02 .bash_history
-rw-r--r--  1 root root   589 Mar 20 01:37 .bashrc
drwx------  3 root root  4096 Aug 17  2018 .cache/
-rw-r--r--  1 root root   148 Aug 17  2015 .profile
drwx------  2 root root  4096 Mar 13 15:34 .ssh/
drwxr-xr-x  2 root root  4096 Mar 19 08:40 .vim/
-rw-------  1 root root 12100 Mar 20 01:36 .viminfo

4 같이 보기[ | ]

편집자 J Jmnote Jmnote bot
  • 로또번호 생성
    초보를 위한 개발 실습 과제로군요 ㅎㅎ Pinkcrimson
  • 리눅스 날짜 기준으로 파일 삭제하기
    mtime 문법이 이상합니다. 확인 부탁합니다. + 없이 숫자를 입력해야 특정 시점 이전으로 검색이 됩니다. +가 들어가면 이상한 값이 나옵니다. 백승현
  • 리눅스 날짜 기준으로 파일 삭제하기
    +를 입력하는게 맞는 것 같습니다. 저는 + 없이 입력했더니 해당 시점만 나옵니다. 테스트하여 내용을 수정했으니 참고바랍니다. ( 테스트 환경: 우분투 12.04 및 14.04, find 4.4.2 )J Jmnote