Last active
June 26, 2020 11:07
-
-
Save aashishrbhandari/40632f003e1c8cf90c9eba487a89c930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Linux Essentials | |
## list files with Proper File Size listed by Creation data ( first is the oldest & last is the recent) | |
COMMAND | |
---------- | |
ls -lrth | |
Explanation | |
------------- | |
-l use a long listing format | |
-t sort by modification time, newest first | |
-r reverse order while sorting | |
-h with -l and/or -s, print human readable sizes (e.g., 1K 234M 2G) | |
-------------------------------------------------- | |
Example: | |
--------- | |
All Files inside dir are searched in recursive manner and file name with the line number and line is printed for easy debugging | |
Output: | |
-------- | |
ashish@localhost:/mnt/c/Users/a_ash$ grep "error:" -inER /usr/local/src/* | |
/usr/local/src/gitProj/WhatWeb/.git/hooks/pre-commit.sample:35:Error: Attempt to add a non-ASCII file name. | |
/usr/local/src/gitProj/WhatWeb/plugins/nexpose-security-console.rb:21:# ERROR: certificate common name `NeXpose Security Console' doesn't match requested host name `candi4.cirt.vt.edu'. | |
/usr/local/src/gitProj/WhatWeb/plugins/mysql-error.rb:17:# 318 for mySQL "Error: Access denied for user" "using password: YES"|"using password: NO"|"to database" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment