TLDR
Enter a command. For example: pg_restore, rbenv, grap, todoman.

basename

 
Remove leading directory portions from a path. More information: https://www.gnu.org/software/coreutils/basename.
 
  • Show only the file name from a path:
     
    basename {{path/to/file}}
     
  • Show only the rightmost directory name from a path:
     
    basename {{path/to/directory/}}
     
  • Show only the file name from a path, with a suffix removed:
     
    basename {{path/to/file}} {{suffix}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.