The Baeldung logo
  • The Baeldung LogoLinux Sublogo
  • Start Here
  • Write for Baeldung
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Category upFiles

File Editing » truncate

Editing files is a common task of any novice or advanced user on the system. Learn about some of the common commands used to edit files using various examples.

  • sed (27)
  • awk (23)
  • vim (23)
  • vi (11)
  • cat (9)
  • head (6)
  • echo (6)
  • tr (5)
  • tail (5)
  • perl (4)
  • tee (4)
  • printf (4)
  • find (4)
  • grep (4)
  • ffmpeg (3)
  • file (3)
  • lsof (2)
  • copy-edit (2)
  • x truncate (2)
  • rename (2)
  • split (2)
  • mv (2)
  • sort (2)
  • cut (2)
  • reference (2)

>> Quickly Clear the Contents of a File in Linux

>> Removing the Last Character of a File

  • ↑ Back to Top
The Baeldung logo

Categories

  • Administration
  • Files
  • Filesystems
  • Installation
  • Networking
  • Processes
  • Scripting
  • Search
  • Security
  • Web

Series

  • Linux Administration
  • Linux Files
  • Linux Processes

About

  • About Baeldung
  • The Full Archive
  • Write for Baeldung
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo