General :: Removing A Root Reference In Subdirectory?

Jun 4, 2010

While saving a file I made a typo and performed the vi command ':w~' instead of ':w!' and I created a root '~' instance in one of my subdirectories. How do I remove this reference without wiping out the entire main /root /~ directory? Do I use unlink()?

View 1 Replies


ADVERTISEMENT

General :: Copy Everything In A Subdirectory Across To The Relevant Subdirectory Elsewhere

Sep 16, 2011

At the moment I'm doing:

for i in mdx/[0-9][0-9].png; do cp $i ../../d_s_c/images/mdx ; done

But as well as the directory mdx, I also have other directories called ntt, etc.

How can I say 'For everything in a subdirectory, copy it across to the same subdirectory over at at ../../d_s_c/images'?

View 1 Replies View Related

Server :: Debian Apache2 Rewriting Subdirectory To Root Breaks Accessing Cgi Scripts

May 25, 2010

OS: Debian 5.0.4
Server: Apache2

I've used mod_rewrite to rewrite my apache2 root (my.server.com/) to point to /var/www/drupal6/ instead of /var/www/. I also have a script installed in my cgi-bin (/usr/lib/cgi-bin) but since the rewrite I can't seem to access it. When I go to my.server.come/cgi-bin/test.pl, I get a page not found from my drupal.

Is there a way I can access my cgi-bin without resorting to accessing my drupal through my.server.com/drupal6/?

Background: I have installed drupal CMS which has a base address of my.server.com/drupal6/ as it resided in /var/www/drupal6/. However I wanted users to be able to access it as my.server.com/ so I added the following into my httpd.conf

Code:
NameVirtualHost *:80
<Directory /var/www/drupal6>
RewriteEngine on
RewriteBase /

[Code].....

View 1 Replies View Related

General :: Removing Flash Drive - Root Folder Turned Red

Sep 16, 2010

I took some videos off a usb flash drive, then went and selected " safely remove usb" and the light continued to blink on the flashdrive, I pulled it out any way, and the root folder turned red... everything seems ok, but how do you know when it's ok to safely remove a usb devise ?

View 3 Replies View Related

Fedora :: Grub Not Liking UUID As Root Reference

Aug 17, 2010

when my grub references the UUID for the root= parameter, I get a kernel crash. If I change the root= parameter to /dev/<partition>, grub boots without a problem (f13 64-bit)

[Code]....

View 8 Replies View Related

General :: Removing Write Permission Does Not Prevent Root From Writing To File

Feb 3, 2010

I just noticed on my Ubuntu machine (ext3 filesystem) that removing write permissions from a file does not keep root from writing to it. Is this a general rule of UNIX file permissions? Or specific to Ubuntu? Or a misconfiguration on my machine? Writing to the file fails (as expected) if I do this from my normal user account.Is this normal behavior?Is there a way to prevent root from accidentally writing to a file (Preferably using normal filesystem mechanisms, not AppArmor, etc.)

I understand that root has total control over the system and can, eg, change the permissions on any file.My question is whether currently set permissions are enforced on code running as root. The idea is the root user preventing her/himself from accidentally writing to a file. also understand that one should not be logged in as root for normal operations.

View 4 Replies View Related

General :: Create A Unique Zip With Only Public Subdirectory?

Apr 15, 2010

I've a lot of websites (100+ directories) I want to create a unique zip with only public subdirectory.

My structure now is like:

- Site 1
--- app
--- tmp
--- log
--- public

[Code]...

View 4 Replies View Related

General :: Literate Way Of Moving All Files To New Subdirectory?

Jul 19, 2010

$ mkdir backup && mv * backup/
mv: cannot move `backup' to a subdirectory of itself, `backup/backup'

Works, but issues a warning. Also exit code is 1.

How to do it properly (but not [much] longer)?

View 2 Replies View Related

General :: Copy Everything In Current Directory To Subdirectory?

Aug 25, 2010

How Can I Copy Everything in Current Directory to Subdirectory in linux console

View 6 Replies View Related

General :: Get Different Permission To Subdirectory Of A Share In Samba?

Jun 13, 2011

I would like to know how can I get permission to subdirectories of a share other than what main share has. I do not want them to have same share I mean for example I share "sharetest" and it has full access for A and B and C groups but "sharetest/foo1" has read only access for A group and "sharetest/foo2" has read only access for B group and "sharetest/foo3" has read only access for all of them.

View 1 Replies View Related

General :: Filter Find And Du By Content Of Inner File In Subdirectory?

May 30, 2010

I have the following command that I run on cygwin:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | xargs du --max-depth=0 > foldersizesreport.csv

I intended to do the following with this command: for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and report it to file foldersizesreport.csv however that is now not good enough for me, as it turns out inside each

/d/tmp/subfolder1/somefile.properties
/d/tmp/subfolder2/somefile.properties
/d/tmp/subfolder3/somefile.properties
/d/tmp/subfolder4/somefile.properties

so as you see inside each subfolderX there is a file named somefile.properties inside it there is a property SOMEPROPKEY=3808612800100 (among other properties) this is the time in millisecond, i need to change the command so that instead of -mtime -150 it will include in the whole calculation only subfolderX that has a file inside them somefile.properties where the SOMEPROPKEY=3808612800100 is the time in millisecond in future, if the value SOMEPROPKEY=23948948 is in past then dont at all include the folderin the foldersizesreport.csv because its not relevant to me.so the result report should be looking like:

/d/tmp/,subfolder1,<itssizein KB>
/d/tmp/,subfolder2,<itssizein KB>

and if subfolder3 had a SOMEPROPKEY=34243234 (time in ms in past) then it would not be in that csv file.so basically I'm looking for:

find /cygdrive/d/tmp/* -maxdepth 0 -mtime -150 -type d | <only subfolders that have in them property in file SOMEPROPKEY=28374874827 - time in ms in future and not in past | xargs du --max-depth=0 > foldersizesreport.csv

View 1 Replies View Related

Server :: Apache Root Path Reference "/"?

Jul 13, 2010

I have 2 machines A and B that are identical (supposedly). I have a file /var/www/html/pca.jarI have a page /var/www/cgi-bin/work/view.cgi

Only the following html works on machine A
<applet code="MainAppApplet.class" archive="/pca.jar" width="550" height="400" name="myApplet" MAYSCRIPT>

[code]....

View 1 Replies View Related

General :: Debian: Unable To Mount A Second Drive As A Subdirectory Inside Of Another Partition

Jun 14, 2010

I have the following /etc/fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0

[Code]....

This is, incidentally, the same message that I see while booting. The error message goes away if I comment out the line in fstab starting with /dev/sdc.

View 1 Replies View Related

Ubuntu :: Removing 'var/www' Root Restrictions?

Sep 26, 2010

I have an Apache, PureFTPd, PHP5, and MySQL server setup and running. I'm running several scripts that require folder access of "var/www" in order to accomplish the scripts duty. How do I remove and/or work around the security measure?

View 7 Replies View Related

CentOS 5 :: Removing Root SSH Access / Adding New User?

Jul 13, 2010

I am going to remove root access via SSH which seems fine but I don't know how to add a new user, do I have to create a group first or are there existing groups I can add a user to, and does it matter which group I add a user to if I want this user to have root access with sudo?

View 11 Replies View Related

General :: Undefined Reference To `__libc_csu_fini'?

Dec 9, 2010

I am getting the bellow linker error with GCC 4.4 and GLIBC 2.12.

1. /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x12): undefined reference to `__libc_csu_fini'
2. /usr/lib/../lib64/crt1.o: In function `_start': (.text+0x19): undefined reference to `__libc_csu_init'

View 7 Replies View Related

General :: Undefined Reference To `rand_'?

May 21, 2011

When I am trying to compile the code in this linkI get the following error:

fmech_subs.o: In function `focalmc_':
fort77-3595-1.c.text+0xa9f): undefined reference to `rand_'
collect2: ld returned 1 exit status

[code]....

View 2 Replies View Related

General :: Undefined Reference To `SHA256_Update'

Jan 25, 2011

I get this error : debug/libns3.so: undefined reference to `SHA256_Update' debug/libns3.so: undefined reference to `SHA256_Final' debug/libns3.so: undefined reference to `SHA256_Init' collect2: ld returned 1 exit status

View 1 Replies View Related

General :: Cross Reference Matching Between Files?

Oct 18, 2009

I'm trying to do something very basic in bash. It's a kind of cross-reference matching between 2 files. I have a file1.txt. It's like this:

Code:

item1
item3
item4
...

I Have a file2.txt. It's like this:

Code:

item1 "Properties of item1"
item2 "Properties of item2"
item3 "Properties of item3"
item4 "Properties of item4"
item5 "Properties of item5"
...

My goal is to print out the lines in file2 that contains lines present in file1. I do:

Code:

for i in $(cat file1.txt); do grep $i file2.txt; done but I get no output. Will someone please tell me where am I mistaking?

View 3 Replies View Related

General :: Version - Reference To A Kernel Info ?

Feb 4, 2011

I am looking to get some information on the version of Linux we are running. I was advised that it was 2.6.18-194.17.4.el5. When I did a search on this and it keeps telling me that is reference to a kernel info. Is this the Linux version or kernel info?

View 6 Replies View Related

General :: Error - Undefined Reference To Main ?

Feb 14, 2010

I keep getting the error:

Here is my code:

View 2 Replies View Related

General :: Using Amazon Kindle To Reference Documenation?

Apr 4, 2011

I do a bit of programming and tinkering with Linux so I have to refer to documentation a lot. As a result my eyes do get sore when reading through documentation on PC. Another problem is when tinkering and something goes wrong, either with Ubuntu crashing or loss of internet connection, I can't get access to the relevant document to fix it. Because of these, I was thinking of getting an e-reader, in particular, an Amazon Kindle as it is the only one I've seen sold locally as I don't like buying electronic goods online as it is a hassle with shipping if anything goes wrong.

I would like some advice. Is the Kindle worth having to view documentation and tutorials? Is it easy to reference relevant material through it's search facilities? Most important of all, can it connect to (Ubuntu) Linux through a usb port?

View 6 Replies View Related

General :: Operating System Command Cross Reference Site?

Oct 18, 2010

Does anyone know of a decent Operating System CLI cross reference website where I can compare diffent CLI commands against others? For example I have a MAC OS 10.6X running Darwin and I needed to know what the equivalent command using CentOS of rusers would be? It would be users running that same command at the MAC cli.

View 3 Replies View Related

General :: Connect To A Test Database - Undefined Reference To `sqlite3_open'

Jun 7, 2010

I have a little C++ program that I am attempting to connect to a test database.

#include <iostream>
using namespace std;
#include <sqlite3.h>
int main ()
{
int rc;
[Code]....

When I compile this code, I get the error: undefined reference to `sqlite3_open' I added sqlite3 package using the command 'apt-get install sqlite3'. Unfortunately the sqlite3.h header file was not installed in /usr/include, so I downloaded the SQLite3 dist., untarred it and copied the sqlite3.h file to /usr/include. I saw on a previous message that I would need to link the library. The only library file in /usr/lib is libsqlite3.so.0, so the command g++ -lsqlite3 still gives me an error.

View 5 Replies View Related

General :: How To Track Elapsed Real-time - Undefined Reference To `clock_gettime'

Jan 28, 2010

What is the best way to track elapsed real-time, for the most kinds of Linux systems?

clock_gettime() looks great, but I get this build error:

undefined reference to `clock_gettime'

..even though I have #include "time.h" Here is my uber-goal:

// Returns fractional seconds that have elapsed since Start_Ticks was set.
float elapsed_seconds( unsigned Start_Ticks )
{

[code]....

View 1 Replies View Related

General :: Compile And Link A Program To Test Parapin - Undefined Reference

Dec 17, 2010

I'm trying to compile and link a program to test parapin.

Code:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "parapin.h"
int main(int argc, char *argv[])
{ ...
[Code]....

It looks like the library is found (no error anyway) but the functions in it are not seen. Text at the beginning of libparapin.a includes function names as used in the test program, and parapin.h declares them.

View 2 Replies View Related

General :: Login MUCH Slower - Some Reference To AppArmor Profile - Screen Corruption ?

Jul 5, 2010

I am new to linux but will try and be as precise as I can. I have a Dell Insp. 1545 with 3GB ram with 10.04_64

Problem: Rather out of the blue upon login, from the time of entering password to the desktop, is MUCH slower. I have no splash enabled and there is some reference to AppArmour profiles (it sits there at this apparmour reference , then sits trying to load desktop). However, I have never configured apparmor. Finally, on last login, there was some sort of screen corruption prior to getting to desktop.

Prior to all this i noticed that firefox "blinked" when I was using it, and then said that it needed to shutdown/restart for updates. I did notice at that time two of my previous tabs sortof acted oddly (moved around then disappeared).

I have no SSH/Server software etc activated.

I did change visudo so that sudo timeout shorter than it was. However that is the only modification to the system recently.

View 1 Replies View Related

Networking :: NFS Autofs Can't See Mounted Subdirectory?

Oct 21, 2010

I have a machine (mercury) on which /home/hyperhacker/video is a mounted external hard drive while the rest of /home/hyperhacker is on the internal hard disk. I have a second machine (konata) using autofs to automatically mount mercury:/home/hyperhacker in /mnt/mercury as needed. This works, except /mnt/mercury/video shows up empty.mercury:/etc/exports has: Code: /home/hyperhacker konata(ro,subtree_check)/home/hyperhacker/video konata(ro,subtree_check) and I've tried a few variations in konata: Code: $ cat /etc/auto.master

[...]
+auto.master
/mnt /etc/auto.mercury

[code]....

View 2 Replies View Related

Ubuntu :: 10.10 - Cannot Detect Subdirectory (Bash CD Error)

Dec 21, 2010

I'm trying to change to a subdirectory:
Code:
tony@advent:~/scratch$ cd Home-Arch
bash: cd: Home-Arch: No such file or directory

So I list the contents of the current directory:
Code:
tony@advent:~/scratch$ ls
duhome Home-Arch qcad_1.dxf qcad_1.svg runme stdout

OK, I assume I have mis-typed the subdirectory name in ways I cannot detect, so I copy the sub-directory name from the output of the 'ls' command, while within the terminal window, and paste it into the next 'cd' command:

Code:
tony@advent:~/scratch$ cd Home-Arch
bash: cd: Home-Arch: No such file or directory

I browse the directory and sub-directory in Nautlius - everything is there where I expect it to be. The folders/files are not hidden. What is happening here?

View 8 Replies View Related

Debian Multimedia :: Removing Epiphany Without Removing Half The System?

May 31, 2011

I know a bunch of commands and I am comfortable using the terminal, I even set a powerpc server but I can't figure out how to remove epiphany on this new computer I'm setting up. I didn't install anything with tasksel. I installed gnome and xorg afterwards... I load it up and 'startx' just fine. then I check around for the programs that were installed. I lik'em gimp, lot's of utilities. gedit. anyway I find epiphany, which I have already established that I dislike, I immediately go to the root terminal (another nice program that comes with gnome) and type apt-get remove epiphany-browser-data the output says it will be deleting gnome... however I have researched and found these are simpy meta packages that don't really matter.... however under the section that states all the packages that will be removed by autoremove there is a huge list... I doubt these packages are safe to remove. how to remove epiphany without removing a huge amount of probably needed software

View 14 Replies View Related







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