List of open files:
List of open files deleted
lsof | grep deleted
Kill process to remove locked / opened deleted fill
Find Size of folders in current directory
du -sh *
List files (attributes, list, human readable)
Remove files from a system
Remove Directory with files in it and all subdirectory
rm -rf directory/
You can use * to select multiple directories or files
rm -rf temp*
will delete all temp files containing temp and folders, ex temp123, or folder temp_dir
Using these commands via terminal it will bypass any trashcan.
Catalog or view a file | show it page by page with more
cat /path/to/somefile.txt | more
Terminal file editors:
Graphical file editors:
How to open or Untar a “tar” or” tar.gz” file in Linux or Unix:
- From the terminal, change to the directory where yourfile.tar has been downloaded.
- Type tar -zxvf yourfile.tar to extract the file to the current directory.
- Or tar -C /myfolder -zxvf yourfile.tar to extract to another directory.
list installed packages files (Red hat, Centos, Fedora) this can help you find config files for a certian package
rpm -ql (package) | grep /etc
Windows / DOS
Navigating the command prompt
The /s will delete all subdirectories
Prior to XP deltree
XP – Vista rmdir /s
Windows 7 -8 – rm /s