Questions tagged [buffer]

133 questions
34
votes
3 answers

Vim - save and close buffer in one command

I have a bunch of text files in a directory and I know I'll need to edit each one individually. I start at the command line with: vim *.txt Which opens the files as separate buffers in Vim and leaves me looking at the first one. I edit it, then I…
Joe
  • 3,520
32
votes
3 answers

Are there any Pros/Cons to the /j Robocopy option (unbuffered copying)

Robocopy has a /J command line option recommended for copying large files (it copies using unbuffered I/O). What (if any) downsides are there? Any reason this isn't enabled by default? (That's what made me think there MIGHT be downsides.)
Clay Nichols
  • 5,448
27
votes
4 answers

How do I increase terminal scrollback buffer size?

I'm using CentOS 5.4 servers installed in a VMWare virtual machine with no X.Org server installed, so all access is via command line and the Linux terminal. I use Shift + Page Up to view the scrollback buffer, but its size is very limited. How do I…
22
votes
1 answer

Why didn't `dd conv=sparse` save space as I expected?

I was going to make an image of my old USB drive. I had good reasons to expect there were some blocks filled with zeros on the device, so to save some space I used conv=sparse option: dd if=/dev/sdb of=myusb.img conv=sparse bs=32M However it saved…
18
votes
3 answers

Why is gzip slow despite CPU and hard drive performance not being maxed out?

I have some JSON files, 20 GB each, that I want to compress with gzip: gzip file1.json This takes up one full CPU core, all fine. It processes around 25 MB/s (checked in atop), my hard drive can read 125 MB/s and I have 3 free processor cores, so I…
nh2
  • 977
18
votes
5 answers

vim: number of total buffers

in vim, with :buffers I get the number of all buffers the same with :ls , but how I can get the total number of buffers ?
juanpablo
  • 7,424
16
votes
4 answers

What is the difference between a cache and a buffer?

Is saying a cache is a special kind of buffer correct? They both perform similar functions, but is there some underlying difference that I am missing?
16
votes
4 answers

Is there a way to tell VLC to buffer a file on a remote PC so as to play uninterrupted with the channel's average BW?

Is there a way to tell VLC to buffer a file on a remote PC so as to play uninterrupted with the channel's average bandwidth? I set network latency to high, but I wish there was more I could do.
Matt
  • 6,539
15
votes
3 answers

Configure VIM for copy and paste keyboard shortcuts from system buffer in Ubuntu?

How do I configure VIM for using Ctrl-c to copy and Ctrl-v to paste from system buffer in Ubuntu?
Rohit
13
votes
3 answers

Do Solid State Disks (SSDs) have a buffer cache?

All HDDs that I know have at least 8MB or more of buffer cache (I know that it is for increasing read and write performance on Disk Drivers). However, I'm just curious: Do SSDs have any buffer/cache system, something similar as HDDs? Do SSDs have…
Diogo
  • 30,792
11
votes
2 answers

Is it possible to reset the sequence of indices that vim uses for file buffers?

As I open up new files inside vim, the buffer index seems to skip over arbitrary indices. I switch between buffers using b, so it helps to have sequential indices for sanity/OCD sake. After a while, I just exit vim and load up the…
leo
  • 377
  • 4
  • 7
10
votes
2 answers

MacOSX 10.6.7 cuts off stdin at 1024 chars

I've written a little perl script that I invoke as follows: perl -pe'...'
9
votes
1 answer

Shell unbuffering for CygWin: is it possible?

I have tested on CygWin doing "ls -R" with a large directory and sending the output to a Test.txt file, so the process takes about 30 seconds to complete; the file is created, but it is empty; it will only be filled when the "ls -R" command…
9
votes
2 answers

stdbuf not working while unbuffer does

I am trying to apply timestamps to stdout of a process. For the proper timestamps to be applied, I attempt to unbuffer stdout of the process. This works with unbuffer but not with stdbuf as I would expect. Consider the following slow printing…
frankc
  • 311
9
votes
4 answers

Open multiple info buffers in Emacs

Is it possible to open more than one info buffer in Emacs? I used C-h i to open info and started reading the section I was interested in. While reading, I wanted to refer to another info section -- using C-h i a second time does not open a second…
1
2 3
8 9