0% found this document useful (0 votes)
39 views3 pages

CD /home/vo166x PWD Ls Ls-Ltorls-La RM RM RM - R .Log Find /home/vo166x - Type F Find - Type F - Name ' .Log' - Exec RM

The document describes common Linux commands for navigating directories, listing files, and removing files. The cd command changes directories, pwd prints the current directory, and ls lists files. The rm command removes files while rm -r recursively deletes files and folders. The find command searches for files matching criteria like type, name, and location to perform actions like printing or deleting.

Uploaded by

mehmet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views3 pages

CD /home/vo166x PWD Ls Ls-Ltorls-La RM RM RM - R .Log Find /home/vo166x - Type F Find - Type F - Name ' .Log' - Exec RM

The document describes common Linux commands for navigating directories, listing files, and removing files. The cd command changes directories, pwd prints the current directory, and ls lists files. The rm command removes files while rm -r recursively deletes files and folders. The find command searches for files matching criteria like type, name, and location to perform actions like printing or deleting.

Uploaded by

mehmet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Commands

cd /home/vo166x
pwd
ls
ls -lt or ls -la
rm
rm *
rm -r *.log
find /home/vo166x -type f
find . -type f -name '*.log' -exec rm {} \;
Function
Change directory
Print current directory
list folders/files in directory
additionally shows user information,create date,permissions etc.
remove command
deletes everything in current directory
deletes all directories in current directory and in its subfolders
find and print all files in current directory and in its subfolders
find and delete all files containing .log in current directory and subdirectories
Notes

-r will also look for files/folders under subfolders of current directory.rm -r can't see

You might also like