histrory time?

cateslla

Green Team
19.10.2020
80
12
─# history -c
fc: event not found: -c
не удаляются файлы
 
Последнее редактирование:
1177 XAUTHORITY=/root/.Xauthority sudo firefox
1178 firefox
1179 ls -al
1180 /usr/bin/firefox
1181 firefox
1182 ls
1183 exit
1184 firefox
у меня уже за тысячу перевалило

скажите как можно исправить?
 
60 rm "$HISTFILE"
61 history
62 rm $HISTFILE
63 sudo -ihistory
64 ls -all
65 echo $HISTFILE
66 rm $HISTFILE

вел history ничего не удалилось
 
делаю так открываю:
nano ~/.zshrc

# ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples

setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
setopt numericglobsort # sort filenames numerically when it makes sense
setopt promptsubst # enable command substitution in prompt

WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word

# hide EOL sign ('%')
PROMPT_EOL_MARK=""
alias clear_history='echo "" > ~/.zsh_history & exec $SHELL -l'
ставляю сюда сохраняю файл .zshrc и
закрываю. Вожу zsh и набираю
clear_history


$ clear_history
[1] 26802
┏━(Message from Kali developers)

┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒

┗━(Run: “touch ~/.hushlogin” to hide this message)
el

она удаляет но когда выхожу exit из оболочки
и вожу в терминале

$ history
1 ls
2 man fc
3 which history
4 \history -c
5 history 0 -c
6 echo "" > ~/.zsh_history & exec $SHELL -l
7 ~/.zshrc
8 sudo ~/.zshrc
ничего и не удалилось вопрос в одной оболочке удаляется в другой нет?
 
echo $0
cat /etc/shells
/bin/sh
/bin/bash
/bin/rbash
/bin/dash
/usr/bin/tmux
/usr/bin/fish
/bin/zsh
/usr/bin/zsh
chsh -s /bin/bash
перезапусти терминал
 
Мы в соцсетях:

Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab