Professional Documents
Culture Documents
line
<Ctrl-k> deletes to end of line.
word.
* Inherited from emacs.
Piping
| command1 | command 2 Pipes the standard output of command1 into the
standard input of command2.
Forcing Changes:
Save changes
Exit :wq!
Do not Exit :w!
Abandon changes, staying in the editor, through :e! and force a
write through :w!. Finally, force a write through :w1!. Finally,
force a write and quit with :wq!. The last command will forcibly
write the file, but only quit if the forcible write was successful.
The set, env and echo commands can be used to display all
variables, environment variables, and a single variable value,
respectively.
set | less
env | less
echo $HOME
on logout.
COLUMNS
Sets the width of the terminal( xterm, gonme-terminal or
kterm)
LINES
Sets the height of the terminal ( xterm, gonme-terminal or
kterm)
HISTFILE
Specifies the file in which history commands are stored on
logout
HISTSIZE
Specifies the number of history commands to keep while
operating interactively.
A numeric permission preceded by – will match files that have at least one
bit (user, group or other) for that permission set.
Symbolic permission by a + will match any file where all criteria are met.
To match files where someone has been denied a permission, simply write
a search for files where the permission is granted and then negate it. In
other words, to find files where neither the user nor the group have read
access you could use something like: find –not –perm +ug+r
do
commands
done