Host HOSTNAME
User USERNAME
HostName IP_ADDRESS (or hostname.fqdn)
Not to mention the proxy stuff below.
A place for John to record his techy notes, both to refer back to when needed, and as a help for others...
Host HOSTNAME
User USERNAME
HostName IP_ADDRESS (or hostname.fqdn)
$ pkgtrans gzip-1.3.12-sol26-sparc-local .
-redir tcp:22::22
$ git log
git checkout 45a5b1aa137c07b15f820f49762feb7ec068b3f8 .
.vimrc
set vb t_vb= " Turn off visual bell
.inputrc
set bell-style none
~/.bash_profile (or /etc/profile or .bashrc or somewhere)
setterm -blength 0
$ xset b off
$ xset b on
~/.bash_profile:
export LESS="-q"
head and tail do not have to be negative...tail -X FILENAMEtail +Y FILENAME
$ tail +20 FILENAME
tail: Warning: "+number" syntax is deprecated, please use "-n +number"
$ head +20 FILENAME
head: cannot open `+20' for reading: No such file or directory
$ tail -n +$SKIP FILENAME
$ seq 1 5 > FILENAME
$ cat FILENAME
1
2
3
4
5
$ head +2 FILENAME
head: cannot open `+2' for reading: No such file or directory
==> FILENAME <==
1
2
3
4
5
$ head -2 FILENAME
1
2
$ head -n 2 FILENAME
1
2
$ head -n +2 FILENAME
1
2
$ head -n -2 FILENAME
1
2
3
$ tail +2 FILENAME
tail: Warning: "+number" syntax is deprecated, please use "-n +number"
2
3
4
5
$ tail -2 FILENAME
4
5
$ tail -n 2 FILENAME
4
5
$ tail -n -2 FILENAME
4
5
$ tail -n +2 FILENAME
2
3
4
5
:%g/^sometext,/ d