Common SSH Commands - Linux Shell Commands

  • January 22, 2024
  • 0 Comments

Navigating in UNIX
pwd Shows the full path of the current directory
ls Lists all the files in the current directory
ls -al Lists all files and information
ls –alR Lists all files and information in all subdirectories
ls -alR | more Same as ls –alR, pausing when screen becomes full
ls -alR > filename.txt Same as ls –alR, outputs the results to a file
ls *.html Lists all files ending with .html
cd [directory name] Changes to a new directory
cd .. Changes to directory above current one
clear Clears the screen
vdir Gives a more detailed listing than the ""ls"" command
exit Log off your shell

How helpful was this article to you?

Posting has been disabled.