From the course: Linux Tips
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Splitting and combining files - Linux Tutorial
From the course: Linux Tips
Splitting and combining files
- [Instructor] Files are really just a bunch of bits. So if we need to, we can slice and dice a file into various parts and put them back together again. Splitting a file might be necessary to store it on a few devices that might not be able to hold the full thing. Or to make individual smaller pieces available for download, or something like that. To split a file, we use the command split. Here in my Pictures folder, I have a picture of a cat. Let's split it into a few pieces and put it back together again. He looks surprised, but it won't hurt. Here in the terminal, I'll use the command split and then specify -b. This tells split to divide the file by bytes. And I'll tell split to split this file into one megabyte chunks. Then I'll use -d, which appends decimal numbers, instead of strings to the end of each of the parts' file names. Then I'll provide the file to split, cat.jpg. And I'll provide a template for how to name the parts. In this case, we'll call them cat.jpg.part. And…
Contents
-
-
-
-
System basics: The Linux file system6m 35s
-
(Locked)
System basics: The command line5m 23s
-
(Locked)
System basics: Keyboard shortcuts1m 40s
-
(Locked)
System basics: sudo access and root4m 57s
-
(Locked)
System basics: Explore a system4m 38s
-
(Locked)
System basics: Exploring Bash7m
-
(Locked)
System basics: Bash scripting basics4m 59s
-
(Locked)
System basics: The Bash prompt6m 2s
-
(Locked)
System basics: Bash output redirection4m 57s
-
(Locked)
Bash expansions and substitutions4m 23s
-
Bash aliases and functions4m 7s
-
(Locked)
Bash operators6m 55s
-
Logs5m 4s
-
(Locked)
Grub3m 19s
-
(Locked)
SysV init4m 43s
-
(Locked)
Systemd5m 29s
-
(Locked)
Cron8m 7s
-
(Locked)
Understanding chroot3m 16s
-
(Locked)
System basics: User and group management8m 39s
-
(Locked)
System basics: Service management3m 44s
-
(Locked)
Backing up data with rsync5m 35s
-
(Locked)
Splitting and combining files3m 3s
-
(Locked)
Environment configuration files2m 43s
-
(Locked)
Working with dotfiles1m 43s
-
(Locked)
Exploring the PATH variable3m 51s
-
(Locked)
Browsing with the directory stack3m 19s
-
(Locked)
Finding or locating files3m 52s
-
(Locked)
Working with swap4m 29s
-
(Locked)
Read and write caches3m 5s
-
(Locked)
Terminals, consoles, and TTYs4m 27s
-
(Locked)
Exploring journalctl5m 2s
-
-
-
-
-
-
-
-
-
-
-
-