Taking Backup of files of particular limit in unix [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
Here is the scenario,
I have 1000 files in a folder each 0f 3 MB, I want to zip all files into 50MB each zip and remove those files
50MB may contain 20 files or 10 files but that zip package should be <=50MB

Do they have to be separate, complete zips, or do you just want each file to be <50mb. If so, look at adding -s 50M to your zip invocation (check man zip for split)

Related

custom filename for output-file without using additional-suffix [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I would like to split a huge text file into separate text files. I use:
split -l 1000 file.txt split_file
and I will get split_fileaa, split_filebb, etc.
How can I change the extension to be
split_file0.txt, split_file1.txt, etc?
--additional-suffix is what you need for the additional suffix :
split -l 1000 -d --additional-suffix=.txt file.txt split_file
There is a -d option for numeric suffixes.

Can I view a linux directory in binary mod? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've learned that linux directory is a file. So can I view it in binary mod like viewing other files with hexdump?
You can dump raw portions of a drive using the dd command and that is about as low level as you can get. You can also use debugfs to do maintenance on the filesystem.

Find out the number of CPU cores used by a linux job [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
How can I find out how many CPU cores is a job running on a Linux system using?
Is it somehow through the top command?
you can use ps -aF or I am guessing you are referring to htop which is a graphical tool.

In Linux, zip multiple directories in one named zip file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have the following directories, I want to zip up into the same zip file. Can someone provide the correct syntax?
ie. zipping the following directories:
/home/users/jlefler/files
/opt/software/reports/files
into a zip file called backup.zip.
try
zip -r backup.zip /home/users/jlefler/files /opt/software/reports/files
you can add more directories at the end of the command

Find location of .csr file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I need to find the location of an existing csr file on my linux server, but I'm not sure where it's stored.
What's the best way to find this out?
If you have locate installed (it is part of GNU Findutils, may be included in your installation) then you can simply do:
locate myfile.csr
Otherwise you may have to search the whole filesystem with find:
find / -name "myfile.csr"
If you have some idea of where it might be (eg under a certain home dir or something) then you can specify that directory in place of the /.

Resources