I am have trouble getting the ls command to work exactly how I want, for example, sometimes I want to list the contents of a directory into a text file by command:
Code: ls directory > list.txt
(assume the only objects the directory contains are files with extension .dat eg file1.dat, file2.dat, ...)sometimes I want the relative path of the files prepended to them in my text file eg:
path/file1.dat path/file2.dat path/file3.dat
[Code].....
It feels like ls is unpredictable in this regard - sometimes it prepends the path and sometimes it doesn't and sometimes it adds both entries (with and without the path prepended into the text file)....How can better control the way ls works?
My goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find .pdf or find .pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
I am using Fedora on a system i just installed it on, i just got a new HP monitor and hooked it up, now it won't work. I keep getting AN ERROR: unable to locate 10APIC for GSI 6,13,8,12,1......WHEN THE SYSTEM BOOTS UP.
I normally use the "locate" command to find files that I have on my local drive. However, if I wanted to do this for an external drive, how would I go about this?
From what little I know about Linux, I'm guessing that it creates a reference file from which it performs the search when the command is typed. If I'm right this is updated at a given interval or when "updatedb" is used?
As the external hard drive is not always mounted is it best to create another of these reference files and have a different command (e.g. locateext) or something? Or is it best to add the external hard drive's location to the list of files that get added with updatedb.
I have downloaded and installed a new theme before in my fedora machine.However, I got this warning when I load gvim, nautilus every time.(gvim:4629): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",(gvim:4629): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",
I type in root, it says root is not currently installed and tells me what to type in to install it; I type that in and I get the error message "Unable to locate package root-system-bin"... I'm using Ubuntu 10.10 and I just installed it onto an older HP laptop...
I was trying to find and run the program from command line like calculaterbut i was unable to do these two thing togethet.i can find the path seperetly or i can find and run the program without seeing the pathI want to find and see the path and run it at the same time?
I'm trying to find out which partition grub2 is installed in. Is there a command for this, as I suspect that I may have told it to install to the wrong partition during the upgrade from Karmic to Lucid, and now, I suspect that I've crippled the boot sector for my vista installation
I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the commands still don't work.
I would like to know how to locate the IP address using:1) lynx2) web site: [URL]/tools/ip-address-lookup.aspFYI, I am able to detect my WAN IP address with the next command:WANIP=$(lynx -dump http://www.whatismyip.com|grep -i "Your IP Address Is"|awk '{print $5}'); echo $WANIP
I recently installed 10.04, in the process of installing MythTV... I'm looking for installed files and find bash no longer finds updatedb or locate commands. I did change /etc/hosts and /etc/hostname to change the name of the box. Could this have hosed those commands? I tried them as root... sudo -i, same result...
I m Using 4.0.0-kali1-amd64 in VMplayer Debian - 64bit my internet works fine with wired and wirless as well i tried to install wcid package and that show me error see below :
I m facing some problem
apt-get install wcid-gtk Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package wcid-gtk
2nd thing is blueooth is enable but not works hcitool scan or btscanner
I'm trying to install Ruby on Rails on an Ubuntu desktop VM. The network connection works ok but I can't seem to get this to work:
sudo apt-get install ruby1.9.2
I want the latest version of Ruby.
Is this because I haven't enabled some repository or something - I dimly recall having to 'enable universe' before now... but can't remember why or how....
Installing Debian Testing on a new laptop and wanted to test out KDE4 on this laptop.Somehow I am not able to locate the networkmanager for KDE4 or maybe I missed something?
Cannot install updates. Click on icon which says 65 updates available but update manager opens and is blank and frozen .Reboot and same results. apt-get install updates says Unable to locate package updates. Everything has worked perfectly upto now I am running Squeeze.
I just changed (not upgraded, I made a clean install on a new hard drive) from 9.10 to 10.10 and I have a serious problem. I just can't install new packages. Neither apt-get nor synaptic can find any package. I either get a "E: Unable to locate package <package_name>", or "E: Package <package_name> has no installation candidate" For example when I type sudo apt-get install emacs23 , I get this output: Quote:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package emacs23 And the synaptics package manager only lists the packages I already have. I searched these forums and googled my error message, but I couldn' t find anything helpful. The only thing I know is that this is not a network/proxy problem, I am behind a proxy but I have set the http/https/ftp_proxy environment variables, and I have a working network connection, as I am actually posting from the same computer.
To start, I am a very new user of ubuntu, so please bear with me. I just installed ubuntu on an old desktop and cannot get it to install packages. I installed these same packages on my laptop that is a little newer and it works on the laptop, but it wont work on the desktop. I searched for previous threads and found to try
Code:
I also tried this many times and nothing has changed
when ever I use the terminal to install a program (for example Ubuntu-tweak) I end up with this line E: Unable to locate package (then the program name),this has also happened when I've updated through the terminal. (I've since installed Ubuntu-tweak via the link on its site).Let me say this my little box has a banging Internet connection. And I have a full almost brand new installation maverick meerkat.
I just reinstalled Xubuntu 11.04, and I'd like to install fluxbox:
Code: 09061920@system:~$ sudo apt-get install fluxbox [sudo] password for 09061920: Reading package lists... Done Building dependency tree
[Code].....
in /etc/apt/sources.list, but I'm on a very slow connection so I don't want to update 42 MB right now (trust me when I say I'm on a very slow connection ).
how to update just the updates necessary for apt-get without having to update the 42 MB of, for the moment, pointless updates?