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
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
3
Q
top
A
display and update sorted information about processes