How to split files
Learn how to use the
split command to split big files in several parts.
split [<options>] <file> [<prefix>]
<prefix>: name prefix of the parts.
splitwill add a couple of letters after this prefix. By default, prefix will be “x”.
$ split -n 3 bigfile bigfile.part $ ls bigfile bigfile.partaa bigfile.partab bigfile.partac
Some of the available options are:
-n <parts>: specify in how many parts you want to split the file.
-l <lines>: number of lines per each output file.
-b <size>: put
<size>bytes per output file. You can use suffixes like
-d: use numeric suffixes instead of alphabetic (e.g.:
You can use
cat to reattach the files.
cat bigfile.part?? > bigfile
?is a RegExp parameter that means “one character”, so
bigfile.part??expands to all files that start with
bigfile.partand have exactly two characters more.
- You don’t need to use RegExp:
cat bigfile.part01 bigfile.part02 > bigfile
In Debian/Ubuntu systems, you can use
dpkg-reconfigureto reconfigure an installed package using intuitive dialogs. I will show you how to use this command to change some system settings.
If you have a scanned PDF and you want to be able to search and copy text from it, in this tutorial I will show you how to do it.
If you want to do X11 forwarding from your container to your host, you can type these simple commands.
If you don’t have a Graphical User Interface (GUI) on your Linux device, or you need a simple text-based web browser, I will show you a couple of great programs.
A comprehensive list of Linux-related websites sorted by categories.