![Linux에서 History 명령 결과에 "*"로 시작하는 빈 줄이 있는 이유는 무엇입니까?](https://rvso.com/image/1416685/Linux%EC%97%90%EC%84%9C%20History%20%EB%AA%85%EB%A0%B9%20%EA%B2%B0%EA%B3%BC%EC%97%90%20%22*%22%EB%A1%9C%20%EC%8B%9C%EC%9E%91%ED%95%98%EB%8A%94%20%EB%B9%88%20%EC%A4%84%EC%9D%B4%20%EC%9E%88%EB%8A%94%20%EC%9D%B4%EC%9C%A0%EB%8A%94%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
오늘 직장에서 제가 history
잘 알지 못하는 명령을 알고 싶어서 방금 전에 실행했다고 확신했습니다. 그러나 동일한 터미널 창에서 실행했을 때 history
명령에 대해 아무것도 발견하지 못했습니다. 나를 더욱 혼란스럽게 만들고 심지어 짜증나게 만든 것은 history
. 이유를 말해 줄 수 있는 사람이 있나요? 구체적인 설명을 부탁드립니다.
2008 make build_asdfasdfa
2009 ls
2010 cd asdfasdf
2011 ls
2012*
2013 exxxxxxxxxxxxxxxxxxx
2014 ls
2015 exxxxxxxxxxxxxxxxxx
2016 ls
2017 exxxxxxxxxxxxxxxxxxxxxx
2018 ls
답변1
ReadLine 구성에서 속성이 켜져 있는 경우 수정된 기록 줄은 *
명령 시작 부분 에 표시됩니다.mark-modified-lines
ReadLine 문서에 따르면 다음과 같습니다.
mark-modified-lines
This variable, when set to On, says to display an asterisk ('*') at the
start of history lines which have been modified. This variable is off
by default.