history不显示行号的5种方法

1. cat ~/.bash_history

2. history -w /dev/stdout

3. history | cut -c 8-

4. fc -l -n 1 | sed 's/^s*//'

5. history|awk '{$1="";print substr($0,2)}'

原文地址:https://www.cnblogs.com/hengwei/p/12887078.html