Per avere la bash con i colori in base ai permessi bisogna modificare il file /root/.bashrc così:
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\h:\w\$ '
umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
Spazio disco:
du -a /var | sort -n -r | head -n 20
trova testo nella cartella:
grep -ri testo *
grep -ri testo cartella
trova file
find . -type f
trova file con estensione .mov
find . -type f -name "*.mov" -not -path "./directory/*"
esporta elenco trovato
find . -type f > file.txt
cambiare nome macchina (hostname)
sysctl kernel.hostname=NOME
sapere se il programma è caricato
pgrep freepopsd
riconfigurare LOCALE
dpkg-reconfigure locales
se non basta modificare a mano il file /home/NOME/.kde/env/setlocale.sh
export LANG=it_IT.UTF-8
export LANGUAGE=it:it_IT:it
Trovare un servizio sulla porta
fuser -n tcp 3128