Alright, basically we're in the whole where we can't tar/gzip a folder since its to big so how do I copy files to a new folder for example
I got files from a-Z, i want to copy all files which starts with a A or a into another folder heres file structure
./backups/A
./backups/B... (11 Replies)
Hello,
I have several files in a specific directory.
A specific string in one file can occur in another files.
If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string.
Example.
file1
ShortName "Blue... (2 Replies)
Hi,
I have the following subfolder with files:
/data/a/1/xxx.txt
/data/b/2/yyy.txt
/data/c/3/zzz.txt
And i have a set of new folders which have exactly the same structure as above but different disk without the files:
/data_02/a/1/
/data_02/b/2/
/data_02/c/3/
Now i would like to... (6 Replies)
Hi everyone
When I'm starting my script I'm giving to it two parameters:
script.sh ext1 ext2
I need to copy all files in a directory fitting ext1, to the same folder, with the same names, but with the changed extension to ext2.
Till now I've just managed to do it for only 1 file, but I... (16 Replies)
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
Hello
How do i copy files matching multiple conditions. Requirement is to search files starting with name abc* and def* and created on a particular date or date range given by the user and copy it to the destination folder.
i tried with different commands.
below one will give the list ,... (5 Replies)
he following are the files available in my directory
RSK_123_20141113_031500.txt
RSK_123_20141113_081500.txt
RSK_126_20141113_041500.txt
RSK_126_20141113_081800.txt
RSK_128_20141113_091600.txt
Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Hello.
For a given folder, I want to select any files find $PATH1 -f \( -name "*" but omit any files like pattern name ! -iname "*.jpg" ! -iname "*.xsession*" ..... \) and also omit any subfolder like pattern name -type d \( -name "/etc/gconf/gconf.*" -o -name "*cache*" -o -name "*Cache*" -o... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT CENTOS
xdg-user-dirs-update
XDG-USER-DIRS-UPD(1) User Commands XDG-USER-DIRS-UPD(1)NAME
xdg-user-dirs-update - Update XDG user dir configuration
SYNOPSIS
xdg-user-dirs-update [OPTION...] [--set NAME PATH...]
DESCRIPTION
xdg-user-dirs-update updates the current state of the users user-dirs.dir. If none existed before then one is created based on the system
default values, or falling back to the old non-translated filenames if such directories exists. The list of old directories used are:
~/Desktop, ~/Templates and ~/Public.
If an old configuration exists it is updated with any new default directories. Additionally, any configured directories that point to
non-existing locations are reset by pointing then to the users home directory. This typically happens when the users removed the directory,
so they likely don't want to use it anymore.
On the first run a user-dirs.locale file is created containing the locale that was used for the translation. This is used later by gui
tools like xdg-user-dirs-gtk-update to detect if the locale was changed, letting you to migrate from the old names.
xdg-user-dirs-update is normally run automatically at the start of a user session to update the XDG user dirs according to the users
locale.
OPTIONS
The following options are understood:
--help
Print help output and exit.
--force
Update existing user-dirs.dir, but force a full reset. This means: Don't reset nonexisting directories to HOME, rather recreate the
directory. Never use backwards compatible non-translated names. Always recreate user-dirs.locale.
--dummy-output PATH
Write the configuration to PATH instead of the default configuration file. Also, no directories are created.
--set NAME PATH
Sets the XDG user dir with the given name.
NAME should be one of the following:
DESKTOP
DOWNLOAD
TEMPLATES
PUBLICSHARE
DOCUMENTS
MUSIC
PICTURES
VIDEOS
PATH must be an absolute path, e.g. $HOME/Some/Directory.
FILES
The XDG user dirs configuration is stored in the user-dirs.dir file in the location pointed to by the XDG_CONFIG_HOME environment variable.
ENVIRONMENT
The XDG_CONFIG_HOME environment variable determines where the user-dirs.dirs file is located.
SEE ALSO xdg-user-dir(1), user-dirs.dirs(5), user-dirs.defaults(5), user-dirs.conf(5).
XDG XDG-USER-DIRS-UPD(1)