Official Bank 0/149

LPI Level 1 Exam 101 (101-400) - Linux Professional Institute Actual Exam Questions

Last updated on April 30, 2026

97% Exam Compliance
149 Total Questions
1
Question

Which of the following commands can be used to create a new file that is 100kB in size?

Options
A

dd

B

file

C

mkfile

D

touch

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Options
A

cat < myapp | cat > file1.log

B

myapp 0>&1 | cat > file1.log

C

myapp | cat > file1.log

D

myapp | tee file1.log

E

tee myapp file1.log

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Options
A

kill -HUP $(pidof grub)

B

grub-install

C

grub

D

No action is required

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

Which grep command will print only the lines that do not end with a / in the file foo?

Options
A

grep'/$' foo

B

grep '/#' foo

C

grep -v '/$' foo

D

grep -v '/#' foo

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.)

Select 3
Options
A

/etc

B

/home

C

/var

D

/lib

E

/opt

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.