Users and Permissions Flashcards

1
Q

chmod

A

change permissions

Syntax: chmod [who this applies to (u,g,o)][+ or -][which permission (r,w,x)] filename.txt

Absolute permissions (numbers)

  • 4 = read
  • 2 = write
  • 1 = execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you change the output from the terminal screen?

A
  • Use > to redirect the output to a file
    ex. (echo “Hello world” > afile) will create a file with the contents of “Hello world”
  • Use >> to append to a file
    ex. (echo “Hello world” >> afile) will append the contents to the file afile and it will now contain two Hello worlds
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

top

A

display and update sorted information about processes

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