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

(새 문서: ==개요== ;리눅스 history 번호 없이 출력 <syntaxhighlight lang='console'> testuser@localhost:~$ history 1 ls 2 ps 3 pwd </syntaxhighlight> <syntaxhighlight l...)
 
태그: 새 넘겨주기
 
1번째 줄: 1번째 줄:
==개요==
#넘겨주기 [[리눅스 history 번호 없이 출력하기]]
;리눅스 history 번호 없이 출력
 
<syntaxhighlight lang='console'>
testuser@localhost:~$ history
    1  ls
    2  ps
    3  pwd
</syntaxhighlight>
<syntaxhighlight lang='console'>
testuser@localhost:~$ history | cut -c 8-
ls
ps
pwd
</syntaxhighlight>
 
==같이 보기==
* [[리눅스 cut]]
* [[리눅스 histroy]]
 
==참고==
* https://ostechnix.com/how-to-display-bash-history-without-line-numbers/
 
[[분류: cut]]

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

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