From what you've posted I don't see anything odd. What O/S and shell are you using? What, if any, error messages are being written.
For what it is worth, when I create file and/or directory names using a command, I run the command once, and save the output in a variable using the contents for everything later. In your case, there shouldn't be any variable data in the output from date (as long as you didn't run command one at before midnight and the mv command after midnight), but it cannot hurt.
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
Hi all,
I have a massive amount of recording files in .WAV format stored in a directory, files dating back to 2006.
It is a huge amount of files as Linux cannot even do a listing of it all, it states: "argument list too long"
What I would like to do is the following:
Find all the files of... (6 Replies)
Hi,
need to zip all files in a directory and move to another directory after the zip..
i am using this one but didnt help me...
zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj
mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/
i am trying to zip all the files in my_proj... (0 Replies)
I have a number of files in a directory that can be grouped with something like "ls | grep SH2". I would like to move each file in this list to another directory.
Thanks (4 Replies)
I have a directory e2e_ms_xfer/cent01
this contains the multiple files some of which will be named below with unique date time stamps
e2e_ms_edd_nom_CCYYMMDD_HHMM.csv
What I want to do is in a loop
1) Get the oldest file
2) Rename
3) Move it up one level from e2e_ms_xfer/cent01 to... (1 Reply)
I have a directory e2e_ms_xfer/cent01
this contains the multiple files some of which will be named below with unique date time stamps
e2e_ms_edd_nom_CCYYMMDD_HHMM.csv
What I want to do is in a loop
1) Get the oldest file
2) Rename
3) Move it up one level from e2e_ms_xfer/cent01 to... (1 Reply)
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Hi All,
We have main directory called "head"
under this we have several sub directories and under these directories we have sub directories.
My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well.
And create... (14 Replies)
Discussion started by: ROCK_PLSQL
14 Replies
LEARN ABOUT CENTOS
targetctl
targetctl(8) System Manager's Manual targetctl(8)NAME
targetctl - Save and restore configuration of kernel target
DESCRIPTION
targetctl is a low-level script to save and restore the configuration of the LIO kernel target, to and from a file in json format. It is
not normally meant to be used by end-users directly, but by system init frameworks, or advanced end-users who are generating the configura-
tion file themselves and need a way to load the configuration without relying on the targetcli configuration shell.
USAGE
targetctl must be invoked as root. Exit status will be 0 if successful, or nonzero if an error was encountered.
targetctl save [config-file]
Saves the current configuration of the kernel target to a file in json format. Since the file may contain cleartext passwords, the file's
permissions will be set to only allow root access. If config-file is not supplied, targetctl will use the default file location, /etc/tar-
get/saveconfig.json.
targetctl restore [config-file]
Removes any existing configuration and replaces it with the configuration described in the file. See saveconfig.json(5) for more details.
If parts of the configuration could not be restored, those parts will be noted in the error output, and the rest of the configuration will
still be applied.
targetctl clear
Removes any existing configuration from the running kernel target.
targetctl --help
Displays usage information.
SEE ALSO targetcli(8), targetd(8), saveconfig.json(5)FILES
/etc/target/saveconfig.json
/sys/kernel/config/target
AUTHOR
Written by Andy Grover <agrover@redhat.com>.
Man page written by Andy Grover <agrover@redhat.com>.
REPORTING BUGS
Report bugs via <targetcli-fb-devel@lists.fedorahosted.org>
or <https://github.com/agrover/rtslib-fb/issues>
targetctl(8)