O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing Multiple Files

Command

Action

:e file

Edit file; current file becomes the alternate file.

:e!

Restore last saved version of current file.

:e+ file

Begin editing at end of new file.

:e+ n file

Open new file at line n.

:e#

Open to previous position in alternate (previously edited) file.

:ta tag

Edit file containing tag at the location of the tag.

:n

Edit next file.

:n!

Force next file into buffer (don’t save changes to current file).

:n files

Specify new list of files.

:args

Display multiple files to be edited.

:rew

Rewind list of multiple files to top.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required