Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to trim log file linux

truncate -s 0 logfile

Where -s is used to set or adjust the file size by SIZE bytes. 
The file can be relative to the current directory or 
an absolute path to the file provided.

For complete truncate command options, use the option --help
Comment

PREVIOUS NEXT
Code Example
Shell :: shell open program 
Shell :: how to update metasploit 
Shell :: linux linebreaks script bash 
Shell :: echo export path 
Shell :: git remove remote file keep local 
Shell :: git reset branch 
Shell :: powershell alias 
Shell :: instalar docker compose ubuntu 
Shell :: tailwind nodejs 
Shell :: screen recorder for ubuntu 
Shell :: Failure while executing; git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1 exited with 128. 
Shell :: how to install multiple packages in one line of pip 
Shell :: add local project to bitbucket 
Shell :: install next js 
Shell :: count number of files in directory linux 
Shell :: run cmd as administrator command line 
Shell :: how to ping in cmd 
Shell :: git add submodule branch 
Shell :: generate pfx certificate 
Shell :: ubuntu upgrade php to 7.3 
Shell :: powershell script path 
Shell :: ubuntu install jellyfin 
Shell :: git get remote branches 
Shell :: gitlab ee version check 
Shell :: remove old version of node and install new 
Shell :: grep but exclude directory 
Shell :: install sail into existing laravel 8 project 
Shell :: fcm post example curl 
Shell :: CMake Error: Could not find CMAKE_ROOT !!! 
Shell :: powershell to string 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =