Skip to content

NeetuPal/linux-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 

Repository files navigation

linux-commands

  • Remove everything ctrl+u
  • Cut left word ctrl+w
  • Reverse history search ctrl+r(> for edit, return to run)
  • Check which Linux flavor (distribution + version)
    cat /etc/os-release
  • Most recently sort files and folder
    ls -lt
  • Least recently sort files and folder
    ls -ltr
  • Listing lnclude hidden files
    ls -alt
  • Filter filenames and runs them as arguments to ls -lt
    grep -ril "user" . | xargs ls -lt
  • Find filename(.,~)
    find . -name '*create*.sh'
  • Find location of file name If file is in your $PATH
    which ./create-aws-user.sh
  • Use quotes for copy(source or destination full path)
    cp "/Users/neetupal/Downloads/project 2/secrets-setup.sh" .
  • This prints the absolute (full) path
    readlink -f DevSetup.ps1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published