Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to find zero byte files

 ls -l | awk '{ if($5==0) print $9}' 

expalin :
 ls
-rw-rw----    1 nkumarachchi2019 nkumarachchi2019        0 Dec 15 16:47 jobs.cancel
$5 th column is zero bit 
if $5 is == 0 print $9 is file path

ls -lh human readable format

Comment

PREVIOUS NEXT
Code Example
Shell :: bash find term in files 
Shell :: apt slow inside lxc 
Shell :: check file path linux 
Shell :: change keyboard layout linux 
Shell :: pull from dev branch to master 
Shell :: for while bash 
Shell :: Ansible gather facts with adhoc command 
Shell :: undo git stash with conflicts 
Shell :: rsync as sudo 
Shell :: undo last commit pushed 
Shell :: check g++ on ubuntu 
Shell :: git create 
Shell :: how to install velero on ubuntu 
Shell :: git show signed commit 
Shell :: Reduce brightness below minimum on Ubuntu 
Shell :: install sdl msys2 
Shell :: protonvpn install ubuntu debian 
Shell :: win kex kali linux 
Shell :: git show which commits deleted file 
Shell :: docker history 
Shell :: docker run with privileges 
Shell :: squash my last x commits together using git 
Shell :: kubernetes get node taints 
Shell :: download powershell 7.2.1 
Shell :: bash grep all after match 
Shell :: contain sql commands in dockerfile 
Shell :: cmake 
Shell :: how to install docker linux mint 
Shell :: adobe photoshop on linux ubuntu 
Shell :: git clone from url cmd 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =