General :: Ls: Displaying The Whole Path?

Jun 7, 2010

GNU/linux kernel 2.6, slackware 12.0

Can ls display the whole path of a file? Suppose I have /media/cdrom1/*. So I want the output of ls to be

/media/cdrom1/file1
/media/cdrom2/file2
..................
/media/cdrom2/fileN

View 12 Replies


ADVERTISEMENT

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

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

General :: Move A File To Some Path And Create That Path When It Doesn't Exist?

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

General :: Forcing An Absolute Path Where A Relative Path Is Expected

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

General :: Deleted Path Variable - How To Return To The Original Path Value

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

General :: Change Windows Path To Unix Path?

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

General :: Change Absolute Path To Relative Path?

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

General :: Command Path Is In PATH But Bash Does Not Find The Command

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

General :: NAM Window Not Displaying In NS2

Oct 10, 2010

I am working on ns2 for my new project. I have successfully installed ns2 on fedora 8 but whenever I try to run in wireless example it does not display the scenario in nam window. It works with wired but not with wireless. It also create nam trace file but does not show anything. I also tried to run Marc Greis tutorial wireless ex but same problem continue.

View 7 Replies View Related

General :: Ubuntu: Tool For Displaying Disk Activity In General And By Process?

Oct 12, 2010

My Ubuntu system is occasionally becoming very sluggish. I'm running many things simultaneously and it's very difficult to tell which program is the culprit.

I suspect that the sluggishness is due to disk activity since the CPU usage is consistently under 50% on each of the 4 cores of the CPU, and over 30% of the 6GB of RAM are free.

Is there a tool that can show me in real time the number of disk IO operations per second and the amount of data read/written per second? Can all this info be broken down and displayed per process?

View 2 Replies View Related

Programming :: Java Applet Not Loading Image With Relative Path But With Absolute Path / Resolve It?

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

General :: Displaying Text On /dev/tty1?

May 3, 2011

I have a server laptop sitting around at home which is a pretty bland server, on which I generally leave the lid open and there is a login prompt always displayed.

However, I'd love to be able to display useful information on /dev/tty1 so whilst the server is just sitting there, rather than displaying a login prompt on the monitor, it could now display, for example, the current time and weather forecast for the day. Or something along those lines.

View 2 Replies View Related

General :: Why SMDK6410 LCD Screen Not Displaying Anything

Nov 15, 2010

I compiled the buildroot for zImage and rootfs.jffs2 for SMDK6410. Used the linux kernel 2.6.35 and busybox 1.17. And deployed these two images using DNW. The kernel and rootfs loaded successfully and able to do execute linux commands from DNW but not from LCD screen. I am new to the linux development and want to see a sample framebuffer / desktop application on the screen.

View 2 Replies View Related

General :: CentOS Not Displaying Gnome?

May 19, 2011

After booting my PC which is running CentOS, it did not display the desktop. It just displayed a terminal window and a firefox browser all on a black screen!

View 5 Replies View Related

Red Hat / Fedora :: Appending A Path To PATH Variable Permanently?

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

General :: Stop Du Command From Displaying Directory Name?

Apr 28, 2011

Does anyone know how to stop the du command from displaying the directory name?

View 1 Replies View Related

General :: Php Programs Errors Not Displaying On Browser

Feb 8, 2011

i have installed fedora14 on my system, while running the php programs errors are not displaying on the browser. display the error while running on the browser at localhost.

View 2 Replies View Related

General :: Webalizer Not Displaying Info On Www Pages?

Sep 14, 2010

I have been trying to configure webalizer on a centOS 5.5 system. I did the yum install and I found this helpful link...However when I try to change the dir it puts the info into, it keeps giveing me an error cannot cd to the directory. I changed the /etc/webalizer.conf file as described in the above article and try to run it manually same results. /etc/cron.daily/00webalizer Error: Can't change directory to /home/webalizer/When I put the original dir back in the path it writes to /var/www not /var/www/output like it should. I even tried a local /var/wwww/output dir. Then I tried a link to /home/webalizer/output (a dir I created) and same results.(with orginal .cfg in place)I go to my www page remote or on the local network I get page not found errors.In summary.1. Why wont the /etc/webalizer.cf file allow me to change the location of the files?2. How do I display the www page to view the data?3. How can I secure the www page so only I can view the data.

View 4 Replies View Related

General :: Displaying All Network Interface Card

Mar 31, 2011

i am new to redhat linux,how do i list all newly added network interface card.can someone kindly help me with this?

View 11 Replies View Related

General :: Displaying Chinese Character In Fedora?

Oct 14, 2010

I need to display chinese character in filename and also on firefox, any link so that I can check out how to do this?

View 1 Replies View Related

General :: First Step Window Isn't Displaying Information?

Jun 8, 2010

I'm running Linux Fedora 12 here and I launched a script to create a profile and it launched successfully...

Now the problem is, after the creation of the profile its suppose to launch "first step" but now this windows appears blank and when i move the cursor around it picking the links..

View 3 Replies View Related

General :: Prevent Displaying Image On Web Browser?

Sep 7, 2010

how to disable displaying image on web browsers. Example I have a link [URL].

- when I connect to this link on my browser, it will not display the image

- But I can use <img src="/img/test.jpg" to websites can read it.

View 9 Replies View Related

General :: Information Not Displaying Correctly On Gnome Desktop

Jun 19, 2010

I have installed both Fedora and Ubuntu with Gnome Desktops and it displays the information an inch to the left, this problem may have to do with the fact that the display comes up as unknown.

View 1 Replies View Related

General :: Displaying Mounted Devices - Incorrect Info?

Feb 11, 2011

Sometimes when I try to display the mounted device in linux it displays devices which are not currently mounted. I want to correct this this using script.

View 1 Replies View Related

General :: Alias For Changing To Directory And Displaying All Files

Jul 4, 2011

I'm trying to setup an alias, that when I change to another directory, any directory, it will also display all its contents like ls -al:Well, that doesn't work. I guess it's an issue with the use of wild-cards.Maybe I should define a new, so far unused, name for the alias like cdl for example.Would be great if someone could help me. I search in several examples for bash aliases but couldn't find the right solution.

View 9 Replies View Related

General :: Aptitude Displaying Directories - Not Showing Actions

Aug 19, 2010

Code:
$ aptitude s
sbin/ selinux/ server/ srv/ sys/
This is what happens when I hit TAB. It always showed "show" and "search" actions before... Why directories now?

View 2 Replies View Related

General :: GNOME Login Screen Fails To Displaying?

Oct 17, 2010

I use Ubuntu 10.04 LTS.

I was compiling an application called Audacious. One of the dependent packages I needed to obtain was called Glib. After installing Glib (and a package it also required), my GNOME began failing and after rebooting the computer, the login GNOME login screen fails to displaying. Does anyone know what's gone wrong?

[URL]

Now after installing Glib, restart your computer and your GNOME will have failed. Why the F did this happen?

View 8 Replies View Related

General :: Gentoo Starts But Hangs After Displaying Some Lines?

May 8, 2011

gentoo linux starts but hangs after displaying some lines, no error message, no panic, just stops after about 20 lines

View 2 Replies View Related

General :: Incorrect Time Zone Displaying In Arch?

Mar 6, 2010

I have a server running ArchLinux; I recently installed openntpd on it. Since I started paying closer attention to the clock, I started noticing other things; specifically when I run the "date" command, it's returned in PST when it should be "EST":

[spice@sandbox ~]$ date
Sat Mar 6 00:17:42 PST 2010

I have set the hwclock to localtime, configured "HARDWARECLOCK" to "localtime" in rc.conf, and chosen two different (but accurate) values for TIMEZONE in rc.conf:

[spice@sandbox ~]$ hwclock
Sat 06 Mar 2010 03:17:38 AM PST -0.922220 seconds
[spice@sandbox ~]$ cat /etc/rc.conf | grep TIMEZONE
TIMEZONE="US/Eastern"
[spice@sandbox ~]$ cat /etc/rc.conf | grep HARDWARE
HARDWARECLOCK="localtime"

However, as you can see, "hwclock" and "date" both say they're showing PST, although hwclock is showing the time in EST. I am not sure whether this was the case before installing openntpd. Is there another place where I should be setting the time zone?

View 2 Replies View Related

General :: Restore Grub - After Rebooting The Menu Is Not Displaying

Jul 13, 2010

I have two operating systems installed in my computer. one is Windows XP( sp2 ) and another is Ubuntu Linux 10.04Lts. I reinstalled Windows XP. After rebooting, the grub menu is not displaying, only windows is booting, there is no sign of Ubuntu. Is there any way to restore the Ubuntu or I have to freshly install Ubuntu again ?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved