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

Offensive Security Trainee Basic Linux Command

The document provides summaries of common Linux commands for system information, file manipulation, user management and permissions. It covers commands like uname, pwd, ls, history, ifconfig, echo, cat, mkdir, cd, mv, rm, nano, touch, cp, mv, rm, adduser, usermod, passwd and chmod.

Uploaded by

Adeen Mumtaz
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)
38 views3 pages

Offensive Security Trainee Basic Linux Command

The document provides summaries of common Linux commands for system information, file manipulation, user management and permissions. It covers commands like uname, pwd, ls, history, ifconfig, echo, cat, mkdir, cd, mv, rm, nano, touch, cp, mv, rm, adduser, usermod, passwd and chmod.

Uploaded by

Adeen Mumtaz
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/ 3

Category 1: General

------------------------

uname: Get detailed info on your system specifications with this command.
uname
uname --help
_________________________________________________________________________
pwd: This command prints the name of the working directory
pwd
_________________________________________________________________________
ls: This command Displays what each file contains and the directories they’re
stored in.
ls
ls -l
ls --help
___________________________________________________________________________________
________
history: Get to know all the previously used commands and attributes with history
command.
history
history --help
___________________________________________________________________________________
_________
macchanger:macchanger changes your mac address, essentially changing your identity.

It helps with protecting your anonymity on the internet, making your IP


untraceable.
macchanger --help
___________________________________________________________________________________
__________
ifconfig :ifconfig interface configuration.

Lets you view current network interface settings and configure them.
ifconfig
___________________________________________________________________________________
___________
echo: It’s like the basic print function
echo Cyber Security.
___________________________________________________________________________________
____________
cat: read files and link them together,
cat
cat --help
___________________________________________________________________________________
____________
Clear: clears the terminal screen
Clear
___________________________________________________________________________________
____________________________________________________________________________

Category 2: Manipulation commands


--------------------------------------------

mkdir:Creates a new directory.


mkdir cyber
________________________________________________
cd:changes the directory you’re working in
cd ./cyber
_________________________________________________
mv:This command moves files between directories.
mv
___________________________________________________
rm: rm removes highlighted texts.

rm --help
______________________________________________________
nano: Another text editor, used as an alternative to the visual editor.
nano
_______________________________________________________

Working with Files in Kali Linux


---------------------------------------
To create a new file. In Kali Linux, we use touch command
touch filename cyber
_______________________________________________________
To display the content of a file.
cat filename
______________________________________________________
To copy files. In Kali Linux, we use cp command to copy files and directories.
cp old/location/of/file /new/location/of/file
__________________________________________________________
To move files. In Kali Linux, we use mv command to move files
mv old/location/of/file /new/location/of/file
___________________________________________________________________
To delete a file. In Kali Linux, we use rm command
rm filename.extension
________________________________________________________________
To edit a file. In Kali Linux, we use nano command to edit files
nano filename.extension
___________________________________________________________________________________
__________________________________________________________________________________
To add user in kali linux
adduser cyber
________________________________________________________
Adding the User to the Sudo Group
sudo usermod -aG sudo <user>
_________________________________________________________--
Change The user password
passwd cyber
_________________________________________________________
chmod command in Linux

The chmod command in Linux is used to manage file permissions.


Linux file permissions involve read, write, and execute permissions.
read mode specifies reading file or directory.
write mode specifies writing and changing file or directory
execute mode specifies executing file
All files have three types:

Owner – Person or process who created the file.


Group – All users have a primary group, and they own the file, which is useful for
sharing files or giving access.
Others – Users who are not the owner, nor a member of the group. Also, know as
world permission.

ls -l

You might also like