Linux sem 1

0.0(0)
Studied by 3 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/27

flashcard set

Earn XP

Description and Tags

Last updated 5:28 AM on 4/3/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

ls

List directories and files

2
New cards

cd

Change between directories

3
New cards

pwd

Current path

4
New cards

mv

Moves files and directories from one directory to another or renames a file or directory

5
New cards

cut -d” “ -f1

Cut a field

6
New cards

cut -c1

Cut a character

7
New cards

rm file.txt

Delete file

8
New cards

chmod ugo

Change mod = changing permission

9
New cards

su admin

Allows users to switch to the root account and perform administrative tasks

10
New cards

sudo admin

Allows users to execute specific commands with elevated privileges

11
New cards

|

Pipe; allow you to connect the output of one command as the input to another

12
New cards

&&

ensure that the command on the right of it will be run if the command on the left of it succeeds and ensures that the second command isn't run if the first command fails

13
New cards

||

executes the second command only if the first command fails

14
New cards

date

used to display and set the system date and time

Format:

dayname month daynum hh:mm:as timezone year

15
New cards

head file.txt

used to display the first 10 part of files

16
New cards

tail file.txt

prints the last few number of lines (10 lines by default) of a certain file

17
New cards

cat file.txt

reads files

18
New cards

cat > file.txt

Entering input into the file

19
New cards

cat » file.txt

Adding text to the current file (the previous text stays)

20
New cards

ls -l

detailed directory listing, showing file permissions, number of links, owner, group, size, and time of last modification

21
New cards

ls -s

List files and sort by file size

22
New cards

ls -lh

Show the file sizes in human readable format

23
New cards

ls -d */

Show only directories

24
New cards

wc -l

Count the number of rows in a file

25
New cards

wc -w

Count the number of lines in a file

26
New cards

wc -m

Count the number of characters in a file

27
New cards

grep

Show lines that contain…

28
New cards

echo $()

  1. Prints

  2. Calculates

  3. Finds

  4. Executes