expansion is used to generate arbitrary strings. The specified strings are used to generate **all possible combinations** with the optional surrounding preambles and postscripts.
... that follow a specific naming-scheme.
:!: It is the very first step in expansion-handling, it's impor... that. When you use
<code>
echo {a,b}$PATH
</code>
then the brace expansion **does not expand the variab
processes [in brackets].
A better way is to use the command to list open files: lsof.
2. Find the name (first column) and Process ID (PID, second column) of the process related to /var/log/bad.log by running lsof and filtering the rows to the one(s) containing bad.log.
You can a
name : Saves file as filename
* ''.'' : Repeats the last change made in normal mode
* ''5.'' : Repeats 5 times the last change made in normal mode
==Moving in the file
* ''0'' : move the cursor to the begining of the line
* ''G'' o ''$'' : move the cursor to th
ogin shells.
# quita el permiso de excritura al others
umask 002
#prompt por defecto
PS1='[\h]$ '
# prompt de color en 2 lineas
if [ -f ".prompt" ]; then
export PS1=`cat .prompt`
fi
if [ -f ".bashrc" ]; then
source ~/.bashrc
fi
# variables de entorno
ex... Please check /usr/doc/tcsh/examples/alias to see other possible values.
# recopilación de alias
# opci
BLE} ; do
if [ "$DIR" != "$1" ] ; then
NEWPATH=${NEWPATH:+$NEWPATH:}$... LE:+${!PATHVARIABLE}:}$1"
}
if [ $EUID -eq 0 ] ; then
unset HISTFILE
fi
# Define algunas vari... c/profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
# Aho... <code bash># Setup for /bin/ls to support color, the alias is in /etc/bashrc.
if [ -f "/etc/dircolors"
ag>linux bash pendiente wiki}}
/via: [[http://www.thegeekstuff.com/2010/06/bash-array-tutorial/]]
<cal... tax ^Description ^
| **${ARRAY[N]}** | Expands to the value of the index ''N'' in the **indexed** array ''ARRAY''. If ''N'' is a negative number, it's treated as the off
rrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
#
# Based on original .rtor... Gui http://rtgui.googlecode.com/
#
# This assumes the following directory structure:
#
# /Torrents/Down... ee "on_finished")
# /Torrents/TorrentFiles/Auto - The 'autoload' directory for rtorrent to use. Place a
a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition. It can only be read if the filesystem type is known and readable.
PARTUUID is a partition-table-level UUID for the partition, a standard feature for all partitions
las =1 es en serie (modo por defecto)
* <code>The terminal output of commands run from parallel thr... ver many files. An example of this is calculating the checksum of each individual file within a directo... ': A placeholder token that will be replaced with the path of the search result (documents/images/party.jpg).
* ''{.}'': Like {}, but without the file ext
de>
* Something simpler (for basic commands) is the -W option<code bash> zmv -W '*.lis' '*.txt'</code... ne this with noglob, you don't even need to quote the arguments.<code bash>alias mmv='noglob zmv -W'
mmv *.c.orig orig/*.c</code>
=== the code whisperer
<code bash>zmv 'Page(*)/shot.jpg' ... th.many.dots.txt" by substituting dots (exept for the last
# one!) with a space
$ touch {1..20}-file.
es comunes a varios servidores.<code>Host *.co.uk
The following pattern would match any host in the 192.168.0.[0-9] network range:
Host 192.168.0.?
A patte... within pattern-lists may be negated by preceding them with an exclamation mark (‘!’). For example, to... from anywhere within an organisation except from the “dialup” pool, the following entry (in authorized
-only filesystem. Remote NFS clients can’t modify the filesystem.
* hard: Applications using files stored on an NFS will always wait if the server goes down. User cannot terminate the process unless the option intr is set.
* soft: Applications using files stored on an NFS will wa
s your machine gets started, it will need to know the mapping of some hostnames to IP addresses before DNS can be referenced. This mapping is kept in the ''/etc/hosts'' file. In the absence of a name server, any network program on your system consults this file to determine the IP address that corresponds to a host name.
The
30 segundos (sospechas)
* status: displays if the firewall is active or inactive
* show: displays the current running rules on your firewall
* reset: disables and resets the firewall to default
* reload: reloads the current running firewall
* disable: disables the fir
e_git_branch {
if we_are_in_git_work_tree
then
local BR=$(git rev-parse --symbolic-full-nam... f HEAD 2> /dev/null)
if [ "$BR" == HEAD ]
then
local NM=$(git name-rev --name-only HEAD... v/null)
if [ "$NM" != undefined ]
then echo -n "@$NM"
else git rev-parse --shor... e_git_status {
if we_are_in_git_work_tree
then
local ST=$(git status --short 2> /dev/null)