if [ -f filename ]
then
echo "file exist"
else
echo "Sorry, file does not exist"
fi
if [ -d directory ]
then
echo "directory exist"
else
echo "Sorry, directory does not exist"
fi
if [ -f filename ]
then
echo "file exist"
else
echo "Sorry, file does not exist"
fi
if [ -d directory ]
then
echo "directory exist"
else
echo "Sorry, directory does not exist"
fi
# gpg –keyserver subkeys.pgp.net –recv KEY
# gpg –export –armor KEY | sudo apt-key add - # Ubuntu supported packages (packages, GPG key: 437D05B5)
deb http://archive.ubuntu.com/ubuntu dapper main restricted
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
# Ubuntu supported packages (sources, GPG key: 437D05B5)
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
# Ubuntu community supported packages (packages, GPG key: 437D05B5)
deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
# Ubuntu community supported packages (sources, GPG key: 437D05B5)
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse
# Ubuntu backports project (packages, GPG key: 437D05B5)
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
# Ubuntu backports project (sources, GPG key: 437D05B5)
deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
user_pref(“network.proxy.http”, “127.0.0.1″);
user_pref(“network.proxy.http_port”, 8080);
user_pref(“network.proxy.ssl”, “127.0.0.1″);
user_pref(“network.proxy.ssl_port”, 8080);
user_pref(“network.proxy.type”, 1);
Creating a Patch File: diff -Naur olddir newdir > new-patch-file
- or -
diff -Naur oldfile newfile >new-patch-file
Using the Patch Command: patch -p0 patch -p1
Which one of the above patch commands you use depends on your current working directory.
Other Methods for calling the patch command – using standard input of patch: cat new-patch | patch -p0