basic Linux commands

Command
Description

echo

Output any text that we provide

whoami

Find out what user we're currently logged in as!

Command
Full Name

ls

listing

cd

change directory

cat

concatenate

pwd

print working directory

Command
Description

find

searches the current directory and subfolders for a file

locate

find

grep

searches for a specific string in a file

wc

used to find out the number of newline count, word count, byte and character count in the files specified by the File arguments to the standard output and hold a total count for all named files.


Command
Full Name
Purpose

touch

touch

Create file

mkdir

make directory

Create a folder

cp

copy

Copy a file or folder

mv

move

Move a file or folder

rm

remove

Remove a file or folder

file

file

Determine the type of a file


su [username] command is used to change user.


history command lets us to see what commands has been inputed into the terminal.

it might have valuable data.

Last updated