cybersecurity kali linux chapter 1

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

27 Terms

1
New cards

kali > pwd

shows where you are

2
New cards

kali > whoami

shows which user you are logged in as

3
New cards

kali > cd /etc

changes directories

4
New cards

kali > ..

moves up one level in the file structure

5
New cards

kali > ls

lists the content of the directories

6
New cards

kali ls -l

lists content like permissions, owner, size, and modifications

7
New cards

kali > ls -la

shows hidden files

8
New cards

kali > —help

provides help for commands

9
New cards

kali > man

displays the man pages with a description and synopsis of the command or application

10
New cards

kali > locate

locates every occurrence of the word

11
New cards

kali > whereis

finds location, source, and man page

12
New cards

kali > <command> -h/-?

can also display help file

13
New cards

kali > which

returns the location of binaries in the PATH variable

14
New cards

kali > find / -type f -name apache2

finds a file in the root directory with the name apache2

15
New cards

kali > ps aux

displays the process running on the machine

16
New cards

kali > ps aux | grep apache2

displays one specific process

17
New cards

kali > cat > filename

hacking is the most valuable skill set of the 21st century!

creates a file with specified name and message

18
New cards

kali > cat » hacking skills:

Everyone should learn hacking

Adds more content to an already created file.

19
New cards

kali > touch newfile

creates a file

20
New cards

kali > mkdir newdirectory

creates a new directory

21
New cards

kali > cp oldfile/ root/ new directory/ Newfie

copys an old file in a new directory

22
New cards

kali > mv newfile newfile2

renames a file to newfile2

23
New cards

kali > rm newfile2

removes a file

24
New cards

kali > rmdir newdirectory

removes a directory

25
New cards

kali > rm -r newdirectory

removes the content of the new directory

26
New cards

Use the cat command to create a ne file and then append it

cat > new.fletxt

hello

cat » new.filetxt

how are you

cat new.filetxt

Hello

How are you?

27
New cards

●      Creat●      Create a new directory named practicefolder in your home directory using mkdir.

●      Inside practicefolder, create a file named examplefile.

●      Copy examplefile into another directory (e.g., /tmp) and rename it to renamedfile.

●      Finally, verify that both the original and the copied files exist in their respective directories.e a new directory named practicefolder in your home directory using mkdir.

mkdir practice folder

cat > examplefile

Hello

cp examplefile /tmp/renamedfile

cat renamedfile