General :: No File Called Config.status In Current Directory
Apr 17, 2011
I'm trying to compile a program from source. When I run make the following appears:./ config. status --recheck make: ./config.status: Command not found make: *** [config.status] Error 127.There is no file called config. status in the current directory. Why was it not created?
I've done a low level format on them so they're completely empty. When I use them with my windows machines, they're absolutely fine. When I plug them into my Ubuntu machine, there is a hidden directory created called 'RECYCLER' which I'm assuming is for deleted files?However, it also creates a .exe file in this directory called 0x2D9FA278 which has an Icon with an H in it and a comment of 'Facebook Photo' This has the effect of making all the directories on the stick into shortcuts! I googled the file name and it seems to be some sort of Trojan, but I don't understand how it's go into my Ubuntu machine, I've scanned with ClamAV and it finds nothing.
I have several directories of subtitles for some videos, but all the text for the subtitles in each file is in uppercase, and I would like to convert the files' content to lowercase, all in one go. I found on a website a bash command that would do each file separately:tr '[:upper:]' '[:lower:]' <input.txt> output.txt but of course involves specifying the input name and output name for each file.I have been trying to do it in a script that would work for all files in the current directory, without having to rename them each time, if that's possible. So far I've got the following, which doesn't work:
#!/bin/bash for file in $@; do tr '[:upper:]' '[:lower:]' done
However, my web searches cannot locate a way of specifying "each file in current directory" in conjunction with the "tr" command, but also without having to rename the file once converted to lowercase. Is it possible, or would the tr command have to create a new file for each converted file?
I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below: 1) cd / 2) find . iostream.h ( finds the file / directory from the current path) It shows No such File or Directory
Code: $ echo 2 * 3 > 5 is a valid inequality. This will create a file in the current directory named '5' with the number '2' in it, the names of all the files in the current directory, followed by the number '3' and 'is a valid inequality.'
What I do not understand is why 'is a valid inequality' gets written to this file. I thought it would write '2', all the file names in the current directory, then '3' into the file called '5'. Why does the 'is a valid inequality.' get written to the file also?
I m trying to execute 1st script into other script. I want the 1st script to put the exit staus into a log file .Also i want to ensure that 1st script will always give exit status other than Zero.
I want to copy a file from an old directory to a new directory and ideally I would like that the 'mv' command itself could create the directory for me in one step...That is to say that the directory would not exist until 'mv' has been called as in:Code:mv olddirectory/file.dat newdirectory/file.datso mv would create the directory 'newdirectory' in the above call....I am not sure if this is possible however, that is to say I think it may be necessary that the directory 'newdirectory' already exists before I make the above call to mv, as when I make try the above call when 'newdirectory' doesn't exist I get the following error:Quote:mv: cannot move `test1/4215/4215-001R.fit' to `test2/test.fit': No such file or directoryso to sum up, my question is:is there some paramater for 'mv' that I can change so that it will create the new directory as well as copy the file and if not, are there other commands that might do this?
Can you help me to install OpenCS PKCS on Ubuntu 10.10 with Firefox 3.6. I have smard card reader Gemplus
Here is error:
HTML Code:
dejansoftware@ubuntu:~$ pkcs11-tool --show-info Error: can't open /var/run/openct/status: No such file or directory Error: can't open /var/run/openct/status: No such file or directory Error: can't open /var/run/openct/status: No such file or directory
I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.
Code:
That is what it shows in the man pages, but when I do that, it says cp: no match
I need to write a script that is given a directory as an argument, and it prints the last modified file from that directory and all its subdirectories.
for example:
$ newest /usr/etc --> /usr/etc/httpd/httpd May 28 12:16
If I had to do it only for the current dir, it would be easy...I'd probably use "ls -lt" and then show only the first line...
### TO DO: Determine the report file name based on the source directory name and current date### The report name and thumbnail directory must follow this pattern: source-%j-%H### for example, for pictures in /home/you/pictures, the file name will be: pictures-%j-%H### HINT: Use sed to extract the directory name from the path and combine it with date command output
With bash is there a way to push and pop the current working directory? I tried writing bash;cd dir; ./dostuff;exit; but the current directory is now dir.
1. is there a way to prohibit a program from writing data on the hdd? 2. can i have different icons on each gnome workspace and how? 3. how to untar to current directory? "tar -xvvf blablah.tar.gz" does not work "tar -xvvf blabla.tar.gz -C ./" does not work in both cases, the files go into some strange random locations. 4. how can i change the way colors are displayed for different content in the xfce terminal? I used to have red for archives, blue for dirs etc. in kde, but lost all that after changing to gnome.
Is there any software that can 'read' the log file in nagios and produce a so-called 'scoreboard' (something like a graph) to display the status of the services? I was told that one could 'read' the log file stored in nagios and create a scoreboard.
I am very interested in using CentOS as a server for diskless PXE booting and was wondering if this was a possibility. I have a working DHCP/TFTP/HTTP system set up and going and I can get my client machine to boot a linux image without any problems. Ideally I would like the diskless machines to be able to immediately load an image through PXE and store their own filesystems on the server through the use of NFS.I heard about system-config-netboot and got very excited because it sounded like something that would help me set up a diskless system. However, after doing some research I have heard from many that it is generally buggy and unlikely to work. When I tried using it I got the error: "The diskless directory must be NFS exported and contain a boot sub-directory"Even though my diskless directory WAS nfs exported and most definitely contained a boot sub-directory. Does anyone have any advice on using this tool, or using CentOS as a server for diskless clients?
Is it possible to find out the directory Thunar is currently displaying from the command line? I will only have one instance of Thunar open at one time.
I'm using Squeeze, and haven't seen an update in the Debian repo for some time. Seeing as it's due for release soon (September), can we expect some updates in the near future? I had been using Gnome Shell in Ubuntu with much success, including compiling my own. These days, I cannot afford the bandwidth, and have encountered an unknown problem [URL] under Debian Squeeze. Currently, I'm experiencing a very annoying flickering issue using the repo version which I know does not exist anymore in the current gnome development. To have at least one update now before the release date would be nice to see.
Actually I suppose to use this "htop" command to get the system utilities like current processor speed ,running programs ,memory usage(ram and swap) to my program. I planned to get it using popen(). I was success popen("top | grep Mem", "r") with top command. But are there a way to take such information using "htop". Or are there any idea of taking current CPU,MEM,Swp usage as well as Tasks and running tasks using htop or other way to C program...
I have been playing around with the tar command and I know this is how to use it. Code: tar -cf [filename] [directory] But what I want to make an archive from the current directory I thought just to not enter a directory but that doesn't work. I get an error about creating a empty archive so how to do I make it so how do I tell it to do the current directory?
1. How can you find all first level subdirectories under the current directory? 2. How will you show the last 100 lines of the file "foo.log"? 3. How will you Stream the contents of a the log file "foo.log" as it gets written to? 4. How can you grep for a pattern on a gzip'ed file? e.g., find "foo" in bar.gz 5. Find all lines in the file "foo" which DON'T have the pattern "bar" 6. Your web server is running very slowly. If you can login to the server, what command will you run to find out cpu and memory use? 7. Extract the file foo which is a part of the tar'ed, gzip'ed file bar.tar.gz 8. You attach a usb disk to your linux desktop, but it does not show up. How can you get more information about the error? 9. What is the secure way to login to remote systems? 10. What is the difference between TELNET and SSH? 11. Given a file 'a' with the following permissions -rwxrwxrwx 1 rohit rohit 0 2011-01-24 13:30 a Change its permissions such that it is only readable and writable by its owner, not accessible by anybody else in the group and only executable by the world 12. Difference between using ' and " for quoting a string / command in a shell 13. In the attached text file (test.txt) replace all occurrences of 'red' with 'yellow' without using an editor (i.e. from the command line) 14. How would you suppress output written to stderr by a command 15. Meaning of the #! notation in scripts e.g. #!/bin/sh 16. What is the output of the attached shell script test.sh Scripting questions, all based on the attached file access.log. Use one of perl, python, ruby, or shell scripts to solve these questsions. If any answer is obtained using just the command line, please include those commands as well. 17. How many accesses were made between 10am and 11.30am on Jan 24, 2011? 18. How many unique IP addresses accessed this server? 19. For every IP address which accessed this server, output a report showing number of hits for every type of HTTP status. For e.g., IP 192.168.1.20 has 164 hits with status 404 and 1690 hits with status 200.