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

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다)
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
26번째 줄: 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]]
* [[리눅스 ll]]


[[분류: bash]]
[[분류: 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