General :: Prevent Move Command ?

Jul 30, 2011

I want2 know that how stop move folder on samba share.

View 1 Replies


ADVERTISEMENT

General :: Prevent Special Users To Run Batch Command?

Aug 6, 2011

What is the best way to prevent some user run some command? For example every body can run at and batch command and 3 or 4 special users prevent run these command?

View 7 Replies View Related

General :: Have A List Of Files, Move Them Using One Command?

Nov 2, 2010

I have run a command which finds a lot of files based on some search criteria. It returns the files like so:

./somepath/somepath/file.something
./asdf/asdf/s.php
./etc/a.php
./a/b/c/d/e/f/g.jpg

So I was wondering, if I capture this output into a file (ie. one file per line), can anyone help me write a command which iterates through the file and moves the files one by one to a specified directory?

View 3 Replies View Related

General :: Command Line - Move Or Copy Selected File

Jul 16, 2011

How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.

View 7 Replies View Related

General :: Move To Previous System Date Using Command Line?

Sep 21, 2010

I want to know the command, so that i can move back two days i.e. all the changes i made during the two day is rolled back .

View 5 Replies View Related

General :: Move 10 Files Of .dat Extention To .txt Using Single Command Or Script?

Nov 22, 2010

I have 10 files of .dat formatsayA MCDR .datB MCDR .datand so one upto 10 dat filehow i convert these 10 dat files to txt files using single command or script

View 6 Replies View Related

General :: Find A Proper Command To Move A Certain Set Of Files According To Date/time Range?

Mar 18, 2009

I'm trying to find a proper command to move a certain set of files according to date/time range. I am thinking that the command should be something like:

Code:
ls -l | grep 'date/time range' | mv /folder

View 6 Replies View Related

Server :: Ssh: Prevent Disconnection After A Command?

Aug 19, 2010

I wish to create aliases to log into a server and go to a specific folder. For example, I have two aliases:

Code:

alias REP1='ssh me@server cd /REP1'
alias REP2='ssh me@server cd /REP2'

and of course, I'm disconnected after cd commands. I found no ssh option which prevents this disconnection to occur. I also tried the following trick:

Code:

ssh me@server "cd /REP; bash -i"

but it left me with a crappy shell (no color, directions keys printing ^]]A, ...)

View 4 Replies View Related

General :: Command Line - Move Folder Contents Into Parent Folder

Jun 11, 2010

I have a folderA that contains folderB that contains a lot of files. I would like to get rid of folderB, but not its contents. I want those contents to be inside of folderA. How can I accomplish this on the commandline?

View 2 Replies View Related

Ubuntu :: Finding A Command To Prevent Ristretto Of Starting With The System?

Jan 4, 2011

Ristretto is starting with my Xubuntu... My pc has only 125MB of RAM... Is there a command to prevent ristretto of starting with the system? Are there any other ways to let my xubuntu faster?

View 3 Replies View Related

Ubuntu Security :: How To Prevent Grub Command-line Boots

May 18, 2011

The ability to manually boot using the Grub command-line constitutes a big security risk in Linux, IMO.Any OS can be booted in this manner from a PXE-LAN, USB, or CD/DVD drive, circumventing BIOS-imposed boot restrictions. (Once a foreign OS is booted, of course, it can be used to access any part of an unencrypted hard drive.) Placing passwords or locking menu items (in the Grub configuration files) does not prevent a user from booting manually using commands entered at the grub command-line.

As it stands now, when presented with the Grub menu (or after bringing up a hidden Grub menu with the "ESC" key), a user only needs to hit "c" to enter the Grub command-line mode to facilitate any type of bootup whatsoever. (They can then enter manually the Grub commands to boot an OS on any device.) This is extremely insecure and allows any passerby to boot the computer with a few keystrokes and a bootable USB drive. How do I configure Grub so that it will require a password in order to enter the command-line mode (and thereby restrict boot options to the menu, which can then be password protected/locked) ?

View 8 Replies View Related

Hardware :: Use The Mv Command To Move Certain Subtree Within The Tree?

Nov 27, 2010

Kernel 2.6.21.5, Slackware 12.0

Suppose I use the mv command to move certain subtree within the tree rooted at /. May I expect only a very small quantity of sectors will be involved in the process? Or, on the contrary, it is probable that a large amount of data will be transfered from sector to sector? Assume ext2.

If any of you is wondering why such a theoretical question, I am ready to translate it to practical terms: I have just created a directory called /home/john/mic2 which I expect to grow until reaching over a thousand nodes (nodes in the sense given to this word when studying lattices, trees and the like). But maybe later I will change its name to /home/john/mic1 for which, I think, mv is the usual tool in Linux.

mic2 is just a file. As such, there is a set of sectors associated with it. When I rename, these sectors will be left vacant and a new set of sectors will be written. Or maybe the same set shall be rewritten. And is that all? Remember mic2 is by now about a thousand nodes "large".

View 3 Replies View Related

Ubuntu :: Script Or Command To Move Files To Directory Of Same Name

Mar 12, 2010

I'm doing a little work on my media center and the scrappers seem to do a much better job when each movie is in a directory with the name of the movie. However that's not how i have things set up.I have a few hundred avi files i need moved to directory named the same as the avi file.

View 3 Replies View Related

Ubuntu :: Move Gnome Panels From Command Line?

Jul 31, 2010

Is there a way to reposition the Gnome panels from the command line?

View 9 Replies View Related

Ubuntu :: Move Multiple Files Via Command Line?

Sep 15, 2010

I liked the idea of the "cosmos" screensaver/desktop, but wanted to add my own pictures to the application. I navigated to /usr/share/backgrounds/cosmos and tried to drag and drop. I quickly found that I did not have permission to do this.

I googled my problem and found some command line tutorials telling me to sudo cp. My problem is that I have about 30 pics that I want to move in there, and I don't think I can just move the directory, they have to be in that folder as the pictures themselves.

I don't really feel like typing the cp line multiple times with multiple randomly named image files.

Is there a way to have the command line cp all of my files from one directory to another?

View 4 Replies View Related

Ubuntu :: Panel Applet - If Right-click Doesn't Include Move - How To Move That Icon

Sep 19, 2010

For Ubuntu 10.04 LTS / Gnome 2.30.2.

I have two applets on my Gnome panel -- NetworkManager Applet 0.8, and Klipper (it works better than Glipper) -- that I want to move.

HOWEVER, right-clicking the panel icons does not enable me to move these applets, as follows:

- NetworkManager Applet 0.8 does not include a Move item in its list of options.

- Klipper displays a long list of Klipper options but no Move option.

How I can move these items to new locations on the Gnome panel?

View 6 Replies View Related

General :: How To Prevent VNC From Swapping HD

Apr 6, 2010

Actually I'm not sure that it's swapping like mad: I've done more testing and it looks like there may some interference causing the noise that may be correlating with network usage. I'm accessing a MacMini (with MacOS X 10.4) from my Linux machine using VNC. My Linux machine has 4 GB of ram and I run a lot of various apps on it and I've got no issue at all. It's all snappy and don't hear the hard disk swapping/read/writing too often. Now with VNC, the hard disk is swapping like mad. When I'm moving things on the OS X desktop. So I was thinking of creating a ramdisk and forcing the temp VNC files to go into that ramdisk but the problem is I can't find any temp files.

I've attempted to do that:
#!/bin/bash
while [ true ]
do
lsof | grep vnc
done

The VNC version I'm using is this one:
$ vncviewer -version
VNC Viewer Free Edition 4.1.1 for X - built Jan 30 2009 19:33:16
Copyright (C) 2002-2005 RealVNC Ltd.
No matter how much data is coming from the Mac, there should be plenty of memory (4 GB of ram) so there's really no reason to swap like crazy.

View 1 Replies View Related

General :: Prevent CDs Autorun ?

Jan 9, 2010

My linux prevent CDs autorun! i wanna know what to do?

View 1 Replies View Related

General :: Prevent Find - Du - Ls -R From Caching?

Jul 11, 2010

I'm currently copying a large number of files over a network. To monitor progress, I tried running watch du. However, the output never changed (or not much, not sure). find . -type f | wc -l always gives me the same number of files as does ls -R. It seems, these programs use caching, which is, in general, a good thing. Does anyone know, though, how cache usage could be controlled? I'm on an Archlinux system and I'm working on an ext4 fs on an encrypted hd.

View 4 Replies View Related

General :: Prevent Ctrl+Alt+F1 Switching Off From X?

Jan 28, 2011

How to change this sequence to, for example "Ctrl+Fn+F1" or temporarily disable it?@related: How to send Ctrl+Alt+F1 to window (to switch terminal remotely, not locally)?

View 1 Replies View Related

General :: Prevent RC Commands From Running?

Mar 17, 2011

I am running a shell script from a rc file in Linux. The shell script is going into a loop which runs for 8 hours. Now I want to prevent the shell script from running when Linux boots or I need to find a way to kill the shell script when it is running. I tried using killall, kill $! and Ctrl+C etc. Nothing seems to work. Can you suggest a way out. I am new to Linux.

View 2 Replies View Related

General :: How To Prevent A Process Starting

Jul 7, 2011

I have synergyc process that starts at boot. How do I prevent this process from starting? I've searched /etc, /etc/init.d for some configs or scripts but found nothing.

View 2 Replies View Related

General :: Prevent Rmdir -p From Traversing Above Certain Directory

Apr 22, 2010

I hacked together this script to rsync some files over ssh. The --remove-source-files option of rsync seems to remove the files it transfers, which is what I want. However, I also want the directories those files are placed in to be gone as well. The current part of the find command, -exec rmdir -p {} ; tries to remove the parent directory (in this case, /srv/torrents), but fails because it doesn't have the right permissions. What I'd like to do is stop rmdir from traversing above the directory find is run in, or find another solution to get rid of all the empty folders. I've thought of using some kind of loop with find and running rmdir without the -p switch, but I thought it wouldn't work out. Essentially, is there an alternative way to remove all the empty directories under the parent directory?

[code]....

View 2 Replies View Related

General :: Prevent SCP From Copying Local Files?

May 17, 2010

I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.

View 1 Replies View Related

General :: Prevent Evince From Contacting Other Instances?

Jul 23, 2010

Okay, this issue is kinda difficult to understand without context: When we run Evince, it checks if there is any other instance running. If there is one, the evince command exits immediately, right after passing the parameter to the running instance If no other instance is running, a new one will be started, and the evince command will wait until this new instance exits. While that behavior is quite nice, it is not helpful for shell scripts. Why? Because I have a script that writes a temporary .ps file, calls a PS/PDF viewer, and automatically deletes the temporary .ps file after the viewer exits. Unfortunately, this script only works if evince was not previously running (if evince was running, then the file is deleted too fast).

I don't want to add extra complexity to this script. It should be kept simple, because I may want to replace evince with xpdf, gv, or anything else. I was expecting some kind of command-line parameter to evince (similar to -f to vim and gvim), but I fear there is no such option. Writing a wrapper script around evince might be a good solution, but this script should work correctly in all cases (if evince was running and if it wasn't).

View 1 Replies View Related

General :: How To Prevent A Specific Program From Swapping

Feb 9, 2011

Is it possible to prevent a specific program (i.e. rhythmbox and its dependencies) from ever swapping to disk?I'm asking because I have a problem when a music player hiccups whenever Chromium hogs too much memory. Is there a way to work around this? This isn't a problem in Windows anymore so presumably there is a way.

View 3 Replies View Related

General :: Prevent Vim From Clearing The Clipboard On Exit

Jun 20, 2011

If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?

View 1 Replies View Related

General :: Prevent ^C Echo When Ctrl-C Is Pressed?

Jan 10, 2011

I want to prevent "^C" from echoing when Ctrl-C is pressed. I did "stty -echoctl" which some googling results suggested. Now it echos raw Ctrl-C characters instead of the string "^C". That's not any better since it displays some funny blocked hexadecimal in the terminal window.

View 8 Replies View Related

General :: Prevent Author New Files Overwrite Changes

Jun 29, 2011

I use software where I have to edit a text file in order to get my custom needs from it. Problem is that when the author puts out an update, it always overwrites my changes and I have to spend hours trying to compare the file, re-edit my changes back in, etc. This happens sometimes as often as once per month.

I've wondered if there might be a linux tool or commands which would look through the new file, then at my old file, changing only the text which already exists while not breaking anything else. Most software authors seem to know how to do this but since mine doesn't, how can I accomplish this on my own?

View 7 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







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