bash
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| bash [2012/07/09 16:44] – created admin | bash [2021/07/12 20:19] (current) – francesco | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Per cifrare un file di testo usare questo comando: | ||
| + | |||
| + | < | ||
| + | gpg --symmetric --no-symkey-cache --cipher-algo AES256 prova.txt | ||
| + | </ | ||
| + | |||
| + | per decifrarlo, usare: | ||
| + | |||
| + | < | ||
| + | gpg -o prova.txt -d prova.txt.gpg | ||
| + | </ | ||
| + | |||
| + | --- | ||
| + | |||
| + | Per cercare - ed eliminare - i file doppi è utilissima **fdupes**, sia su Linux che in FreeBSD. Questa pagina ha delle istruzioni ben scritte: | ||
| + | |||
| + | http:// | ||
| + | |||
| + | Quindi è opportuno inserire un cron-job che lo faccia una volta a settimana: | ||
| + | |||
| + | < | ||
| + | fdupes -rdN / | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | Wiki eccellente su **bash**: | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | [[tmux]] | ||
| + | |||
| Copio qui i miei file di configurazione bash. | Copio qui i miei file di configurazione bash. | ||
| + | |||
| + | < | ||
| + | francesco@serverHP: | ||
| + | # ~/.bashrc: executed by bash(1) for non-login shells. | ||
| + | # see / | ||
| + | # for examples | ||
| + | |||
| + | # If not running interactively, | ||
| + | [ -z " | ||
| + | |||
| + | # don't put duplicate lines in the history. See bash(1) for more options | ||
| + | # don't overwrite GNU Midnight Commander' | ||
| + | HISTCONTROL=$HISTCONTROL${HISTCONTROL+: | ||
| + | # ... or force ignoredups and ignorespace | ||
| + | HISTCONTROL=ignoreboth | ||
| + | |||
| + | # append to the history file, don't overwrite it | ||
| + | shopt -s histappend | ||
| + | |||
| + | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | ||
| + | |||
| + | # check the window size after each command and, if necessary, | ||
| + | # update the values of LINES and COLUMNS. | ||
| + | shopt -s checkwinsize | ||
| + | |||
| + | # make less more friendly for non-text input files, see lesspipe(1) | ||
| + | #[ -x / | ||
| + | |||
| + | # set variable identifying the chroot you work in (used in the prompt below) | ||
| + | if [ -z " | ||
| + | debian_chroot=$(cat / | ||
| + | fi | ||
| + | |||
| + | # set a fancy prompt (non-color, unless we know we " | ||
| + | case " | ||
| + | xterm-color) color_prompt=yes;; | ||
| + | esac | ||
| + | |||
| + | # uncomment for a colored prompt, if the terminal has the capability; turned | ||
| + | # off by default to not distract the user: the focus in a terminal window | ||
| + | # should be on the output of commands, not on the prompt | ||
| + | # | ||
| + | |||
| + | if [ -n " | ||
| + | if [ -x / | ||
| + | # We have color support; assume it's compliant with Ecma-48 | ||
| + | # (ISO/ | ||
| + | # a case would tend to support setf rather than setaf.) | ||
| + | color_prompt=yes | ||
| + | else | ||
| + | color_prompt= | ||
| + | fi | ||
| + | fi | ||
| + | |||
| + | if [ " | ||
| + | PS1=' | ||
| + | else | ||
| + | PS1=' | ||
| + | fi | ||
| + | unset color_prompt force_color_prompt | ||
| + | |||
| + | # If this is an xterm set the title to user@host: | ||
| + | case " | ||
| + | xterm*|rxvt*) | ||
| + | PS1=" | ||
| + | ;; | ||
| + | *) | ||
| + | ;; | ||
| + | esac | ||
| + | |||
| + | # enable color support of ls and also add handy aliases | ||
| + | if [ -x / | ||
| + | test -r ~/ | ||
| + | alias ls='ls --color=auto' | ||
| + | #alias dir=' | ||
| + | #alias vdir=' | ||
| + | |||
| + | #alias grep=' | ||
| + | #alias fgrep=' | ||
| + | #alias egrep=' | ||
| + | fi | ||
| + | |||
| + | # Alias definitions. | ||
| + | # You may want to put all your additions into a separate file like | ||
| + | # ~/ | ||
| + | # See / | ||
| + | |||
| + | if [ -f ~/ | ||
| + | . ~/ | ||
| + | fi | ||
| + | |||
| + | # enable programmable completion features (you don't need to enable | ||
| + | # this, if it's already enabled in / | ||
| + | # sources / | ||
| + | if [ -f / | ||
| + | . / | ||
| + | fi | ||
| + | |||
| + | linuxlogo -a | ||
| + | </ | ||
| + | |||
| + | questo è il .bash.aliases | ||
| + | |||
| + | < | ||
| + | |||
| + | francesco@serverHP: | ||
| + | ############################ | ||
| + | ### some more ls aliases ### | ||
| + | ############################ | ||
| + | |||
| + | #alias ll='ls -l' | ||
| + | #alias l='ls -CF' | ||
| + | |||
| + | alias ll='ls -lh' | ||
| + | alias lh='ls -a | egrep " | ||
| + | alias la='ls -alh' | ||
| + | alias l='ls -CFh' | ||
| + | alias lu=' | ||
| + | </ | ||
bash.1341845082.txt.gz · Last modified: by admin
