Difference between revisions of "Split (command)"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 16: | Line 16: | ||
* Generate n chunks output files with <code>-n</code> flag | * Generate n chunks output files with <code>-n</code> flag | ||
split -n | split -n | ||
+ | split -n5 filename_to_split | ||
== Related terms == | == Related terms == |
Revision as of 05:18, 20 May 2020
wikipedia:split (Unix)
command splits a file into pieces. Default size is 1000 lines
http://man7.org/linux/man-pages/man1/split.1.html
split filename_to_split (no output and file_name has been splitted)
split filename_to_split --verbose
split -b 500M filename_to_split (no output and file_name has been splitted)
split -b 1G filename_to_split (no output and file_name has been splitted)
- Generate n chunks output files with
-n
flag
split -n split -n5 filename_to_split
Related terms
See also
cat
,tac
,more
,less
,tail
,mtail
,echo
,stdin
,tr
,column
,paste
,truncate
,logrotate
,xzcat
pv
,progress
,sort
,ncat
,virt-cat
,awk
,join
,col
,fold
,tee
,sponge
,nfs-cat
,journalctl, ccat, icat, EOF
, lolcat- file, File system, directory,
touch
,mkdir
,ls
,ln
truncate
,fallocate
,split
,stat
, inode, File descriptor, superblock, block size (blockdev
),fuser
,lsof
,scrub
,chattr
, ulimit (nofiles),cp
,mv
,file (command)
,mkfifo
,chmod
tar
,tar -J
,docker-untar
,--list
,ar
,tar -cvf, tar -xvf, tar --help
Advertising: