# ssh -N -L 5433:localhost:5432 user@server
this way stays in foreground , with -f flag goes to background.
If you get a conflict, you need to do one of three things:
Merge the conflicted text “by hand” (by examining and editing the conflict markers within the file).
Copy one of the temporary files on top of your working file.
Run svn revert <filename> to throw away all of your local changes.
Quick Start: Here we’l present quick start examples explained.
tar -czvf myarchive.tgz mydirectory/
We use the -t option to create an linux tar archive
-c, –create createanew archive
Note that .tgz is the same thing as .tar.gz
tar -cvf myarchive.tar mydirectory/
Extract linux tar gz (Gzip) archive
tar -xzvf mystuff.tgz
Extract linux simple tar archive
tar -xvf mystuff.tar
We use -x to extract the files form the tar archive
-x, –extract, –get extract files from an archive
And now let us shortly explain this command
Usage: tar [OPTION]… [FILE]…
Let us check the option used in this example
-c, –create createanew archive
-z, –gzip, –ungzip filterthearchive through gzip
-v, –verbose verboselylistfiles processed
-f, –file=ARCHIVE usearchivefile or device ARCHIVE
tar -tvf myarchive.tar
tar -tzvf myarchive.tgz
Here we used the - t opton
-t, –list list the contents of an archive
#!/bin/bash
if [ $# -lt 3 ]
then
echo "Usage is : `basename $0` <dir> <filePattern> <term>"
echo "Example : `basename $0` . '*.py' tools.log"
echo " enclose wildcard expressions in quotes"
exit 0
fi
find $1 -name "$2" -print | xargs grep -n $3 /dev/null