Tag Info

Hot answers tagged

9

Your 8GB stick has approximately 7.5 GiB and even with some file system overhead should be able to store the 5.4GiB file. You use tune2fs to check the file sytem status and properties: tune2fs -l /dev/<device> By default 5% of the space is reserved for the root user. Your output lists 97894 blocks, which corresponds to approximately 385MiB and ...


2

The disk label type is the type of Master Boot Record. See http://en.wikipedia.org/wiki/Master_boot_record. The disk identifier is a randomly generated number stuck onto the MBR. In terms of tools for looking at disks, fdisk is on it way to being deprecated if it isn't already so. parted is the replacement for fdisk and gparted can be used to provide a ...


2

What's happening is that your pipes are getting inherited by both child processes instead of just one. What you want to do is: Create pipe with 2 ends fork(), child inherits both ends of the pipe child closes the read end, parent closes the write end ...so that the child ends up with just one end of one pipe, which is dup2()'ed to stdout. But your ...


2

You can open file with F3. Hex view - F4. Start edit - F2.


2

F4 toggles hex mode in the Midnight Commander viewer (accessed using F3), not in the editor. Once in hex mode in the viewer, F2 allows you to make changes to the file being viewed. As you discovered, F4 in the editor starts a search.


2

I often use SSH port tunneling to create an encrypted channel. Since you're using an rsync:// URL I assume you have the rsync daemon running on TCP port 873 on the remote server. We can forward this port as follows: ssh -N -L 873:localhost:873 rsyncssh@server The -N option prevents the execution of a remote command, which would in your case disconnect the ...


1

Answering the X part of this XY problem, I would recommend you investigate the reason your binary file transfers don't transfer properly. If it turns out the reason is because you don't have an 8-bit clean datapath you could then use existing tools that were created to handle this situation, such as base64 or even uuencode. Old but still very effective. ...


1

od -An -vtx1 Check.tar > Check.txt You need -v or od will condense sequences of identical bytes. For the reverse: LC_ALL=C tr -cd 0-9a-fA-F < Check.txt | xxd -r -p > Check.tar Or: perl -ape '$_=pack "(H2)*", @F' Check.txt > Check.tar If your purpose is to transfer files over a channel that only supports ASCII text, then there are ...


1

Ostinato aims to be "Wireshark in Reverse" and become complementary to Wireshark. Ostinato is an open-source, cross-platform network packet crafter/traffic generator and analyzer with a friendly GUI. Craft and send packets of several streams with different protocols at different rates.



Only top voted, non community-wiki answers of a minimum length are eligible