Linux Essentials Skills Exam (IST-190)

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

1/71

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:08 AM on 8/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

72 Terms

1
New cards

Create three directories (reports, archive, scratch) in one command

mkdir reports archive scratch

2
New cards

Create five files log1 through log5 in one command using brace expansion

touch log{1..5}

3
New cards

Move log1 and log2 into the archive directory in one command

mv log1 log2 archive/

4
New cards

Copy log3 into scratch and rename the copy to backup3

cp log3 scratch/backup3

5
New cards

Create a hard link named reportlink pointing to reports/log4

ln reports/log4 reportlink

6
New cards

Create a symbolic link named scratchlink pointing to the scratch directory

ln -s scratch scratchlink

7
New cards

Save the first 3 lines of a file into a new file using redirection

head -3 file > newfile

8
New cards

Append the last 2 lines of a file to an existing file

tail -2 file >> existingfile

9
New cards

Vim command to copy the current line

yy

10
New cards

Vim command to paste a yanked or deleted line below the cursor

p

11
New cards

Vim command to delete the current line

dd

12
New cards

Vim command to save and quit

:wq

13
New cards

Vim command to quit without saving

:q!

14
New cards

Generate an SSH key pair with the default settings

ssh-keygen

15
New cards

Generate an SSH key pair with a custom file name

ssh-keygen -f ~/.ssh/keyname

16
New cards

Push your public key to a remote host for passwordless login

ssh-copy-id -i ~/.ssh/keyname.pub user@host

17
New cards

Run a single remote command over SSH using a specific private key, without opening a shell

ssh -i ~/.ssh/keyname user@host command

18
New cards

Start the SSH agent in your current shell

eval $(ssh-agent)

19
New cards

Load a passphrase-protected private key into the running SSH agent

ssh-add ~/.ssh/keyname

20
New cards

Create a new user named athos

useradd athos

21
New cards

Set or reset the password for user athos to redhat

passwd athos

22
New cards

Change a user's GECOS/comment field to "Operator One"

usermod -c "Operator One" username

23
New cards

Delete a user AND their home directory

userdel -r username

24
New cards

Create a group named musketeers with a specific GID of 22000

groupadd -g 22000 musketeers

25
New cards

Create a group and let the system assign the GID automatically

groupadd groupname

26
New cards

Add an existing user to a supplementary group WITHOUT removing their other groups

usermod -aG groupname username

27
New cards

Two-letter command to confirm a user's group memberships

id username

28
New cards

Which config file shows supplementary group membership for verification

/etc/group

29
New cards

Which config file shows a user's primary group and account info, not supplementary groups

/etc/passwd

30
New cards

Grant an entire group sudo access via sudoers.d

echo "%groupname ALL=(ALL) ALL" >> /etc/sudoers.d/groupname

31
New cards

Grant a single user sudo access via sudoers.d

echo "username ALL=(ALL) ALL" >> /etc/sudoers.d/username

32
New cards

Force a user to change their password at next login

chage -d 0 username

33
New cards

Set the minimum number of days before a password can be changed again

chage -m 10 username

34
New cards

Set the maximum number of days before a password expires

chage -M 30 username

35
New cards

Make umask 007 persistent for a user across logins

echo "umask 007" >> ~/.bashrc then source ~/.bashrc

36
New cards

Change only the group ownership of a file or directory

chown :groupname path (or chgrp groupname path)

37
New cards

Change both owner and group ownership at once

chown user:group path

38
New cards

Add write permission for the group owner using symbolic mode

chmod g+w path

39
New cards

Set permissions to rwxrwx--- using octal notation

chmod 770 path

40
New cards

Set the group's permissions to exactly rwx using symbolic mode

chmod g=rwx path

41
New cards

Set the sticky bit so only a file's owner can delete their own file in a shared directory

chmod o+t path

42
New cards

Set setgid on a directory so new files inherit the directory's group owner

chmod g+s path

43
New cards

Let others view and enter a directory but not modify its contents

chmod o+rx path

44
New cards

Let others cd into your home directory without being able to list its contents

chmod o+x path

45
New cards

Formula to calculate resulting file permissions from a umask value

666 minus the umask value (per digit)

46
New cards

Formula to calculate resulting directory permissions from a umask value

777 minus the umask value (per digit)

47
New cards

Resulting file/directory permissions for umask 022

Files 644, directories 755

48
New cards

Resulting file/directory permissions for umask 027

Files 640, directories 750

49
New cards

Command with no arguments to display your current default umask

umask

50
New cards

Temporarily set umask to 024 for the current shell session only

umask 024

51
New cards

Run a command in the background instead of the foreground

command &

52
New cards

List active and suspended background processes alongside their assigned ID numbers.

jobs

53
New cards

Suspend a running background job referenced by job number 1

kill -SIGSTOP %1

54
New cards

Resume a suspended background job referenced by job number 1

kill -SIGCONT %1

55
New cards

Gracefully ask a process to terminate (the default, catchable signal)

kill -SIGTERM %# (kill %#)

56
New cards

Force-kill a process that ignored SIGTERM

kill -SIGKILL %# (signal number 9)

57
New cards

Kill a process by name instead of by PID or job number

pkill -SIGTERM processname

58
New cards

Find the PID(s) of a running process by name

ps -ef | grep processname (or pgrep -a processname)

59
New cards

Confirm whether a specific PID is still running

ps -p PID

60
New cards

Inside top, which key quits the program

q

61
New cards

List all currently active/loaded service units

systemctl list-units --type=service

62
New cards

List all service unit files with their enabled/disabled state, including inactive ones

systemctl list-unit-files --type=service

63
New cards

Check the detailed current status of a specific service

systemctl status servicename

64
New cards

Check whether a service is set to start automatically at boot

systemctl is-enabled servicename

65
New cards

Check whether a service is currently running right now

systemctl is-active servicename

66
New cards

Start a stopped service immediately

systemctl start servicename

67
New cards

Stop a running service immediately

systemctl stop servicename

68
New cards

Stop and then start a service, changing its PID

systemctl restart servicename

69
New cards

Re-read a service's configuration WITHOUT changing its PID

systemctl reload servicename

70
New cards

Configure a service to start automatically at boot (without changing its current running state)

systemctl enable servicename

71
New cards

Configure a service to NOT start automatically at boot (without stopping it now)

systemctl disable servicename

72
New cards

Reboot the entire machine from the command line

systemctl reboot