General :: How To Return Path To Its Original Value
Jul 20, 2010
Alex accidentally deletes his PATH variable.what are some of the problems he may soon encounter and explain the reasons for these problems. How could he easily return PATH to its original value?
View 14 Replies
ADVERTISEMENT
Apr 26, 2011
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies
View Related
Nov 29, 2010
I just set up an internal mail server for my office using Postfix, Dovecot and Squirrelmail. It works great except for one tiny problem. When I send mail, I address it to user@myoffice (no .com, .net, etc) and it works perfectly. However, somewhere in my work, I screwed up and for whatever dumb reason put myoffice.net somewhere in there and now the return-path always shows up as user@myoffice.net instead of just user@myoffice. Does anyone know how to fix the return-path so that when someone clicks reply it goes to user@myoffice? I've Googled and searched here without finding my answer, apologies if it's out there and I've just failed to see it. Rest assured I have done a couple hours of searching before finally asking for help.
View 7 Replies
View Related
May 21, 2010
Very new to this shell scripting/Linux scripting.
subject_dir=/labs/tricam/MERIT/MERIT_0*
for subject in `ls $subject_dir` ; do
if [ ! -d $subject_dir/$subject/feat/glm2010/doublegz/SRRTA.feat ] ; then
[code]....
View 1 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
Jul 12, 2011
kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17
Code:
As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.
If I am root, things go well:
Code:
View 16 Replies
View Related
Jul 25, 2011
I have an Acer Aspire one which runs ubuntu 10.04. Recently it has developed a problem upon loading it where the screen will not stop flickering and won't allow me to see anything, let alone try to solve the problem. I did have a good google session and found that others have had this problem before, but I couldn't find a solution that worked. I decided to install the newest version via bootable usb and originally try SysLinux but for some reason it would not work, so I have since tried other programs to create a bootable usb. My problem is that whichever software I use, whenever I boot from the usb I get the original SysLinux page and cannot move from there.
Has SysLinux somehow changed the mbr of my usb stick? I'm basically stuck and this is my only non-essential usb so I don't want to use another one.
P.S. sorry if this is in the wrong section of the forum, I wasn't sure where to put it.
View 4 Replies
View Related
Jan 6, 2011
I need advice in getting the original blacklist.conf of the directory /etc/modprobe.d/ because I erased and I don't know if that file could make me have some issues in the future, so if any body can lend me a copy of that file or refere me to some page where i can get it. Is for the slackware 13 32bits distro.
View 2 Replies
View Related
Jul 10, 2010
I wanted, on my laptop, to clone a 60GB HDD into a 500GB HDD using clonezilla (Parted Magic live cd). So I used the option disk2image, create the image file to an USB Drive. Everything was fine, I get my image file on that ext HDD. After I change the HDD on my laptop for the brand new 500GB but I think I make a mistake when restoring the image file using image2disk instead of image2partition. Now my 500gb is recognised as a 60GB hdd on gparted. How can I reclaim original HDD space on my 500GB?
View 7 Replies
View Related
Jun 29, 2010
well, by mistake i ran a command and chown the whole server apache:apache
now, i can't do anything... is there a way to restore the original permissions??
View 3 Replies
View Related
Apr 7, 2010
I am using Ubuntu 9.10, I removed the task bar at the bottom of the screen and replaced it with a new one. The problem is when I click on Fire Fox and by default Fire Fox would drop to the bottom of the screen, now it just disappears. Is there any way of putting back the original settings.
View 1 Replies
View Related
Jul 17, 2009
Java applet not loading image with relative path(e.g. images/1.jpg) but loads image with absolute path(i.e. from /root/user/images/1.jpg) . This is a problem when i want to host the applet on web server
View 2 Replies
View Related
Aug 12, 2009
ok, I pressed alt-ctrl-f1 and it displayed my screen with a gui. I then pressed alt-ctrl-f2 and it displayed a textual desktop. I pressed alt-ctrl-f3 and it displayed the same thing. When I pressed alt-ctrl-f1 to return to my gui, it would not let me return to a gui. I was stuck in a cmd line textual desktop.
How, without restarting, do i return to a gui once I press alt-ctrl-f2??
View 3 Replies
View Related
Jun 19, 2011
The machine I'm using has a PowerPC architecture so I'm somewhat limited to what flavors of Linux I can use and I don't want to go back to Mac OS 8.9. The HD is only 3.3 GB so I can't get both Debian and GNOME on it.
View 1 Replies
View Related
Feb 23, 2011
I would like to remove almost all of the Privacy Evading data that a digital camera is generating, such as EXIF DATA. EXIF DATA: Camera Brand, Camera Model, Date taken, Exposure Time, Flash Fired, Focal Length, Location (if you are using iPhone with categorization by location, if enabled), Metering Mode, etc.
May you, please, write a script which does that job for multiple files?Exiv2 seem to reduce more weight than Jhead so I'll use the command exiv2.That's, generally, what I want the script to do:Retrieve the (Modified) date of a file.
View 3 Replies
View Related
Feb 21, 2011
i want to upload my iso collection to adrive(.)comi have a slow upload and i want to split each iso file in chunks of 100 MB so they upload while every browsing session of mine.i figured i should use split and cat commands to do that.but i cant afford to upload some corrupt archives, so how may i go about checking the small chunks to the original file before uploading
View 7 Replies
View Related
Aug 5, 2010
I created 2nd root (root2) by running useradd -o -u 0 root2 is it possible to deny root2 to change password of original root?
View 11 Replies
View Related
Oct 21, 2010
how to add a path to PATH variable permanently so that it remains persisent even after closing shell and rebooting the system when i added a path, to variable it remained there as long as i didn't closed the shell. but when i reopened it ,changed were undone.
View 2 Replies
View Related
Jul 3, 2010
I have an Ubuntu Linux on a VMWare running and I've installed RPM Package Manager. However when I try to query all packages using the rpm -qa command, I don't get any results returned.
View 2 Replies
View Related
Jan 13, 2010
I'm trying to get a return value from the command running within screen. I have tried
Code:
screen "some_command ; echo $? > retval"
but this refuses to write "retval".
[code]....
View 1 Replies
View Related
Feb 11, 2010
I am writing a script that will give me the network address that a host belongs to, for example if a machine has a ip address of 192.168.1.4 I want the script to give me 192.168.1.0.
I am able to get the ip address echoed using:
Code:
I am having trouble getting the ip address stored as a variable so I can work with it, below is what I have
Code:
View 7 Replies
View Related
Apr 19, 2011
why does md5sum return a dash at the end:
Code:
$ md5sum
string290350295 -
How can I remove this using the md5sum tags?
View 2 Replies
View Related
May 15, 2010
I have called an script in cronjob named get_mac.sh as follows:
#!/bin/sh
MAC=`ifconfig eth0 |sed -n 1p|awk '{print $5}'|awk -F : '{print $1$2$3$4$5$6}'`
ARG_FILE="/etc/asterisk/scripts/server.params"
[code]....
View 1 Replies
View Related
Jul 27, 2010
I am trying to automate yum update of specific package on a remote machine.So far I have this:
#!/bin/bash
# Update my system
if ! yum update w3m
then
failure=1
[Code]...
View 3 Replies
View Related
Dec 7, 2009
On Debian Standard System I would like to is change /tmp directory from it's original /dev/hda8 to destination /dev/hdd5
Code:
Disk /dev/hda: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]...
If I change /dev/hda8 to /dev/hdd5 and reboot the startx command fails to run.
View 7 Replies
View Related
Dec 3, 2009
I bought this not too long ago and it worked great in my ubuntu 8.04 install. When in windows I decided to pair the bluetooth combo with a different bluetooth dongle. After changing it back to the original MS dongle (which I used in ubuntu) the keyboard no longer responds in ubuntu. It works in the CMOS, it works on my windows computer, but not in ubuntu anymore. Mouse works fine, and so does the touch pad on the keyboard.
Is there any way around this? I've tried re-pairing, and waiting a very long time...
View 3 Replies
View Related