"리눅스 history 번호 없이 출력하기"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;리눅스 history 번호 없이 출력
;리눅스 history 번호 없이 출력하기
;리눅스 history 번호 없이 출력하기
<source lang='console'>
 
[root@zetawiki ~]# history | cut -c 8-
<syntaxhighlight lang='console'>
cd /var/log/
testuser@localhost:~$ history
cd ..
    1  ls
ll
    2  ps
cd etc
    3  pwd
</source>
</syntaxhighlight>
<syntaxhighlight lang='console'>
testuser@localhost:~$ history | cut -c 8-
ls
ps
pwd
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[리눅스 history]]
* [[리눅스 cut]]
* [[리눅스 histroy]]
 
==참고==
* https://ostechnix.com/how-to-display-bash-history-without-line-numbers/


[[분류: history]]
[[분류: history]]
[[분류: cut]]

2020년 11월 27일 (금) 19:47 기준 최신판

1 개요[ | ]

리눅스 history 번호 없이 출력
리눅스 history 번호 없이 출력하기
testuser@localhost:~$ history
    1  ls
    2  ps
    3  pwd
testuser@localhost:~$ history | cut -c 8-
ls
ps
pwd

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}