0% found this document useful (0 votes)
10 views1 page

Terminal Commands

The document provides commands for navigating directories, listing files, copying and moving files, creating and removing directories and users, and sorting and searching for files in Linux/Unix systems. Commands include cd, pwd, ls, mkdir, rmdir, rm, cp, mv, sudo, find and sort.

Uploaded by

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

Terminal Commands

The document provides commands for navigating directories, listing files, copying and moving files, creating and removing directories and users, and sorting and searching for files in Linux/Unix systems. Commands include cd, pwd, ls, mkdir, rmdir, rm, cp, mv, sudo, find and sort.

Uploaded by

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

cd --> change Directory.

pwd --> Present Working Directory.


ls --> List files
ls -l ---> list files with details.
mkdir new_folder_name
rmdir folder_name ---> to remove directory containing no folders.
rm -r folder_name ---> to remove the directory containing the files within it.
cp frompath topath.
mv oldfile_name newfile_name
which program_name --> will give
sudo adduser name ---> give new password and full name
sudo deluser --remove-home venky ---> to remove the user.
cd / ---> will redirect to root folder
cd ~ --> will redirect to home directory.

cd ~/Documents --> from anywhere you can get redirectd to Dcouments folder.

cp *.py tofolderpath ---> moves specific files extensions to the folder mentioned.

ls > filenamewithextension --> will copy the pwd file names and saves them in
newfile mentioned
sort -M -r monthsname in reverseorder
sort -n -r numericalfile in reverseorder
sort textfile

> --> this greater symbol is used for the creating the file and store the
contents of the
file before the greater symbol in the file
mentioned afer the great symbol

find ~ -name "*.txt" ---> search for text files * indicate that any type of file
or text or all

You might also like