Friday, 30 December 2016

cp command in unix

cp sourcefile  destinationfile

Disk space check in UNIX


df - h Human Readable formats by using ‘-h’
df -k Display info in File System in Bytes

How to Remove the Files Forcefully in Unix

How to Remove the Files Forcefully in Unix

/ Deleting all file from folder.

rm -rf directoryname

for example if we have "bin/logfile" directory and it have 10 log files and we want to delete then we can use this command to delete this entire folder.

rm -rf bin