Unix Commands by Pranay Tiwari

List the files under the directories

 find . -type f -printf "%T@ %p\n" | sort -nr | cut -d\  -f2-


How to Create file in Unix Directory

cat > file1.txt


How to copy output in unix to out file 

SomeCommand > file1.txt 

Or if you want to append data:

SomeCommand >> file1.txt

How to find file count in each folder sub folder in unix

find . -type d -print0 | while read -d '' -r dir; do
    files=("$dir"/*)
    printf "%5d files in directory %s\n" "${#files[@]}" "$dir"
done


How to find files in unix

 find / -iname 'jssl-1_1.jar' 2>/dev/null


Comments

  1. That's an amazing perspective for the new technology and upcoming eLearning Development Services which will help this sector move further.

    ReplyDelete

Post a Comment

Popular posts from this blog

Sample HZ API's script to Create Contacts and Contact Points in Oracle

REST integration built-in OIC to read Large files with size more than 10MB