Sem I (Prak Grund Infor) - N3 Flashcards

1
Q

Remove directory

A

rmdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Delete files and subdirectory and files. “No Warning if directory contains files.”

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Reverse the files’ order of listing. (BASH)

A

ls -r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Display the content of a file.

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Arrange a string of characters into a chained list. IT is?

A

Catenate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Creates the file named “filename.txt” and allows user to enter text into the file.

A

cat > filename.txt, does what?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Adds the content to filename1 and filename3 to a newly created file called filename3.

A

“cat filename1.txt filename2.txt > filename3.txt” does what?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Make a directory where parents don’t exist. Create a directory called “folder1” inside a directory called “parent”

A
mkdir -p parent_dir/child_dir/grandchild_dir
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Display not only the contents of the specified directory but also the contents of all its subdirectories, and their subdirectories, and so on, in a recursive manner.

A

ls -R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Renames files and folders oder Verschieben von Dateien/Verzeichnissen.

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Suppose you have a file named file.txt in the directory /home/user/documents and you want to move it to the directory /home/user/archive.

A
mv /home/user/documents/file.txt /home/user/archive/
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Rename the file while moving it by specifying a different name in the destination path.

A
mv /home/user/documents/file.txt /home/user/archive/new_name.txt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Move multiple files at once by specifying multiple source files followed by the destination directory.

A
mv file1.txt file2.txt /home/user/archive/
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Move the file and ask before replacing the existing file. (BASH)

A

mv -i

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Move the file and force replacing the existing file.

A

mv -f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Displays the contents of text fil and has more features.

A

less

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Displays the contents of text files and has less features.

A

more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

photo manager for organizing, editing, and sharing photos.

A

shotwell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Show Calender (Bash)

A

cal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Enthälten ausführbare Standard-Kommando-Programme (Binaries) wie ls oder cp. Folder?

A

/bin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Folder, die beim Booten benötigt werden.

A

/boot

22
Q

Папка которая содержит специальные файлы, которые обеспечивают доступ к физическим и виртуальным устройствам, а также для драйверов и модулей ядра.

A

/dev

23
Q

Folder die Konfigurationsdateien und -verzeichnisse, die von verschiedenen Systemdiensten, Anwendungen und Benutzern verwendet werden.

A

/etc

24
Q

Folder die hat Informationen über laufende Prozesse, Hardwarekonfigurationen und andere Systemressourcen.

A

/proc

25
Q

Was macht folgendes kommand bash –version

A

Version der Bash

26
Q

Was macht “man” BASH Kommand?

A

Hilfe zu einem Befehl in der Kommandozeile erhalten

27
Q

Was macht “chmod” Kommand?

A

Gewünschten Rechten auf Datei.

Ausführungsrecht für die Datei script.sh aktiviert
chmod +x script.sh
28
Q

Was macht “chmod 730” Kommand?

A

Lese-, Schreib- und Ausführungsrechte

29
Q

Was macht ““touch “long list”” Kommand?

A

Erstellt Dataei mit dem Name ‘long list”.

30
Q

Was macht “who” Bash Linux Kommand?

A

Zeigt aktuell angemeldete Benutzer

31
Q

Was macht “cat file1.txt&raquo_space; file2.txt” Kommand?

A

Inhalt einer Datei an eine andere Datei angehängen. ZB von file1.txt to file2.txt

32
Q

Местом хранения ненужного вывода. Часто используется для подавления вывода или перенаправления нежелательного вывода команд.

A

/dev/null

33
Q

Was macht “tar cvf date.tar file1 file2” Kommand?

A

Dateien in ein Archiv packen

34
Q

Was macht “tar xvf date.tar” Kommand?

A

Dateien entpacken

35
Q

Bash Kommand die rekursiv Verzeichnisse kopiert.

A

cp -r

36
Q

Bash Kommand die ein Verzeichniss kopiert und erhalt Dateiattribute wie Zugriffrechte und Zeitstempel

A

cp -p

37
Q

Bash Kommand die ein Verzeichniss kopiert und zeight detaillierte Ausgaben an

A

cp -v

38
Q

Bash Kommand die ein Verzeichniss kopiert und force uberschreibung ohne Nachfrage

A

cp -f

39
Q

Bash Kommand die ein Verzeichniss kopiert und fragt vor dem Uberschreibung

A

cp -i

40
Q

Bash Command to display a line of text or a string on the terminal.

A

echo

41
Q

Bash Kommand to locate and display the full path of an executable file

A

which

which ls
>>/bin/ls
42
Q

Bash regular expression for zero or more characters

A

*

List all files ending with .txt. :
ls *.txt
43
Q

Bash regular expression to match serves as a quantifier that matches zero or one occurrence of the preceding character or group.

A

?

file?.txt would match file1.txt, file2.txt, etc., but not file10.txt.
file?.* would match file1.txt, file2.png, etc., but not file10.txt.
44
Q

Create multiple files with similar names but different numbers. For example file1.txt, file2.txt, file3.txt, file4.txt, file5.txt.

A

touch file{1..5}.txt

45
Q

Displaly message. Mesagge should contain numbers from 20 to 10, step 2

A

echo {20..10..2}

46
Q

Bash command to do following: Suppose you have a directory containing files with names like “file1.txt”, “file2.jpg”, “file3.txt”, “file4.jpg”, and you want to list only the files with names ending in either “.txt” or “.jpg”.

A

ls file[0-9].{txt,jpg}

47
Q

Bash command to Count the number of lines, words, and bytes in this file

A
 wc example.txt
 
 
48
Q

Bash command to display a number of lines in a file (At the begining and at the end)

A

head and tail

For example
head -n 5 file.txt 
will display the first 5 lines of file.txt.
49
Q

Bash Kommand, Komman muss Ausgabe von echo “Hello” in die Datei file.txt einfugen, vobei vorheriger Inhalt von file.txt geloscht wird.

A

echo “Hello” > file.txt

50
Q

Bash Kommand, Komman muss Ausgabe von echo “Hello” in die Datei file.txt einfugen, ohne vorheriger Inhalt von file.txt geloscht wird.

A

echo “World”&raquo_space; file.txt