Flashcards
Flashcards quiz 1-5
Cards in this deck (45)
- 1^ (a cap/caret symbol)Will match the beginning of the line only.
- 2$ (a dollar symbol)Will match the end of the line only.
- 3* (an asterisk symbol)D.
A single character followed by an *, will match zero or more occurrences. - 4[ ] (a square-bracket open-close symbol)Character enclosed inside it will be matched. One can use the - to include a range inclusively.
- 5\ (a back-slash symbol)F.
Use this to escape the special meaning of a metacharacter. - 6. (a dot symbol)Matching any single character.
- 7{n}A.
Use this to match a specific number of occurrences specified by n that contains the preceding pattern - 8{n,}Use this to match at ‘least’ n occurrence of the preceding pattern.
- 9{n,m}Use this to match any number of occurrences between n and m of the preceding pattern.
- 10[[:upper:]][A-Z]
- 11[[:lower:]][a-z]
- 12[[:digit:]][0-9]
- 13[[:space:]]B.
a space or a tab - 14[[:alpha:]][a-zA-Z]
- 15[[:alnum:]][0-9a-zA-Z]
- 16Sets write permissionw
- 17Sets execute permissionx
- 18Set the user ID or group ID of the file while the file is being executeds
- 19Sets the sticky bitt
- 20Make the file executable only if it is a directoryX
- 21Sets the specified permissions to those of the owneru
- 22Sets the specified permissions to those of otherso
- 23Sets the specified permissions to those of the groupg
- 24Sets the user ID when the program is executed #4000
- 25Sets the group ID when the program is executed #2000
- 26Sticky bit #1000
- 27Only Owner can read the file #0400
- 28Only Owner can write to the file #0200
- 29Only Owner can execute the file #0100
- 30Only Group can read the file #0040
- 31Only Group can write the file #0020
- 32Only Group can execute the file #0010
- 33Only Others can read the file #0004
- 34Only Others can write the file0002
- 35Only Others can execute the file0001
- 36pwdDisplay current working directory - i.e. where am I?
- 37cdChange to another directory.
- 38mkdirMake a directory.
- 39mvMove a file to another location.
- 40cpCopy a file.
- 41rmDelete a file.
- 42lsList filenames and directories.
- 43rmdirDelete a directory.
- 44chmodChange file security setting
- 45manhelp manual
Information
- Description
- test 2 UNIX Flashcards on Flashcards quiz 1-5, created by hassy saade on 24/09/2018.
- Created by
- hassy saade
- Views
- 11
- Rating