I have a machine with an interface that has two different addresses on CentOS 5
eth0: 10.20.21.77
eth0:1 141.218.1.221
If I issue this command I get the result I'm looking for.
/sbin/route add -net 141.218.1.0 netmask 255.255.255.0 gw 10.20.21.77
ip route show dev eth0
141.218.1.0/24... (1 Reply)
Hello,
I want to add a port in the firewall exception list so that my application can be accessed over network even if firewall is disabled. I am using iptables command to add exception.
The problem is, after setting the rule if I change the firewall setting i.e. on/off then it is overwriting... (1 Reply)
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Guys,
I did a search on this but couldn't find any thing.
I need to add /home/scadm/scripts to the PATH. If I do the below it works for the session I'm in. If I close it and reopen it doesnt work.
PATH=$PATH\:/home/scadm/scripts ; export PATH
I also want this path added to all the... (3 Replies)
I'm trying to set the path permanently through a shell script. (/opt/quest/bin:/usr/bin/lab to /.profile.) I tired using echo option like below but it doesn't work. Please suggest me the right way to do so.
echo "PATH=$PATH:/opt/quest/bin:/usr/bin/lab" >> /.profile (6 Replies)
Hello everyone I am a newcomer to UNIX and I have hit a snag in something that would probably take experienced people about 30 seconds. Long story short I am trying to add a directory to my PATH and it is getting added but not working. I mean, the object of adding it to the path is so I can access... (2 Replies)
Hi,
I am having some NFS directory consistency problems with the below setup on a local (192.) network:
1. Different permissions (chmod) for the same NFS dir are reflected on different clients.
2. (more serious) an NFS dir created on client1 cannot be accessed on client2; this applies to some... (10 Replies)
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT DEBIAN
go2
GO2(1)GO2(1)NAME
go2 - directory finder
SYNOPSIS
go2 [-h] [--cd] [-i] [-r] [--setup] [--version] [pattern [pattern ...]]
DESCRIPTION
This manual page documents briefly the go2 command.
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page.
go2 is a program that finds (and changes to) directories.
IMPORTANT
go2 requires be loaded from the shell. To do this include the next sentence in your $HOME/.bashrc file:
[ -e /usr/lib/go2/go2.sh ] && source /usr/lib/go2/go2.sh
If your wish improve directory caching, you may include also the next sentence:
alias cd='go2 --cd'
Both are made by the setup process the first time you invoke go2.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes ('-'). A summary of options is included
below. For a complete description, see the Info files.
--cd Just change working directory
-i Case insensitive.
-r Search from root directory.
-d Search in hidden directories.
-l List only, print matches and exists.
--setup
Install go2 in your .bashrc.
SEE ALSO
This program is fully documented in
http://arco.esi.uclm.es/~david.villa/go2.html
COPYRIGHT
Copyright (C) 2011 David Villa
This manual page was written for the Debian system (and may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at
your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
AUTHOR
David.Villa@uclm.es
2011-08-05 GO2(1)