Ok well assuming you want to move the contents of every folder on your desktop to the actual desktop you could do:
That Should work, but test it first if you are able.
In the for loop, the i represents a variable that expands to the item found on each respective iteration of the loop, so basically for i in ~/Downloads means that $i represents each individual item in the Downloads folder, for each pass through the loop it goes down the list of every item in that folder. the i can be anything, it is just a variable name.
---------- Post updated 05-15-12 at 11:26 AM ---------- Previous update was 05-14-12 at 10:02 PM ----------
Actually that code will fail if there are spaces in the folder names on your desktop. Try this instead:
how can I automatically check if important files exist in a directory and if not, automatically put the important files where they are needed
say, I want to put .bashrc and a dozen other important files like it into every user's directory, how can I do this??? how do I check every user's... (4 Replies)
hello all,
Need assistance on the subject line above.
I have a logserver.log located at /usr/local/logserver. It's NSLOGDEPTH=100. I'm not sure if this is the reason but my log file retention is only up to 100 only..
sample
logserver001.log
logserver002.log
...
...
logserver100.log
... (2 Replies)
Ok here is my issue. I have processes which will get screwed up and not run because certain log directories wind up filled too much and a directory will have 100,000 files in it. The only way to fix this is to move files out of this directory until the number of files is small enough that the... (7 Replies)
HI All,
I am coding a shell script which will pick all the .csv files in a particular directoryand write it in to a .txt file, this .txt file i will use as a source in datastage for processing.
now after the processing is done I have to move and archive all the files in the .txt file to a... (5 Replies)
I am running a code like this
foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
mv *_${list}.doc ${chart}_${list}.doc #mv: when moving multiple files, last argument must be a... (3 Replies)
I am in a situation where I have some hundreds of thousands of files in a directory (name of directory: big_directory). Now, working on this directory is extremely slow.
I now plan to do this:
Copy 1000 files in each of the directories by creating the directories automatically. All files have... (1 Reply)
Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Here is the script I want to run to deleted log files after a certain time:
touch /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs
find /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs -atime +120 - exec rm -rf {}\;
Exerytime I run it, it throws me the error:
find: paths must... (2 Replies)
I have a bunch of hidden files in a directory in AIX. I would like to move these hidden files as regular files to another directory.
Say i have the following files in directory /x
.test~1234~567
.report~5678~123
.find~9876~576
i would like to move them to directory /y as
test~1234~567... (10 Replies)
Discussion started by: umesh.narain
10 Replies
LEARN ABOUT CENTOS
spice-vdagent
spice-vdagent(1) General Commands Manual spice-vdagent(1)NAME
spice-vdagent - Spice guest agent X11 session agent
SYNOPSIS
spice-vdagent [OPTIONS]
DESCRIPTION
The spice guest agent for Linux consists of 2 parts, a system wide daemon spice-vdagentd and a X11 session agent spice-vdagent of which
there is one per X11 session.
spice-vdagent gets automatically started in desktop environments which honor /etc/xdg/autostart, and under gdm.
FEATURES
The spice guest agent adds the following features to spice Linux guests:
Client mouse mode (no need to grab mouse by client, no mouse lag)
Automatic adjustment of the X11 session's number of virtual monitors, and their resolution, to the number of client windows and their reso-
lution
Support of copy and paste (text and images) between the active X11 session and the client, this supports both the primary selection and the
clipboard
Support for transfering files from the client to the agent
OPTIONS -h Print a short description of all command line options
-d Log debug messages
-s port
Set virtio serial port (default: /dev/virtio-ports/com.redhat.spice.0)
-x Don't daemonize
-f dir|xdg-desktop|xdg-download
Set directory where to save files send from the client, this can be either an arbitrary dir or one of the special values of xdg-
desktop or xdg-download to select the default xdg Desktop resp. xdg Download directory. If no value is specified the default is xdg-
desktop when running under a Desktop Environment which has icons on the desktop and xdg-download under other Desktop Environments
-o 0|1 Disable/enable opening the file save directory with xdg-open (showing the directory in the file manager) when a file transfer from
the client completes. If no value is specified the default is 0 when running under a Desktop Environment which has icons on the
desktop and 1 under other Desktop Environments
SEE ALSO spice-vdagentd(1)COPYRIGHT
Copyright 2010-2013 Red Hat, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
spice-vdagent 0.14.0 April 2013 spice-vdagent(1)