Create
Learn
Share

Linux+ 103 Organized 2

rename
verickle's version from 2017-11-14 21:34

IRQs

Question Answer
0System timer
1Keyboard
2Cascade for IRQs 8–15
3Second RS-232 serial port (COM2: in Windows)
4First RS-232 serial port (COM1: in Windows)
5Sound card or second parallel port (LPT2: in Windows)
6Floppy disk controller
7First parallel port (LPT1: in Windows)
8Real-time clock Reserved for system clock use only.
9ACPI system control interrupt
10Open interrupt
11Open interrupt
12PS/2 mouse
13Math coprocessor
14Primary ATA controller
15Secondary ATA controller
memorize

mke2fs

Question Answer
-bIt specifies the size of blocks in bytes.
-iIt specifies the bytes/inode ratio.
-NIt overrides the default calculation of the number of inodes that should be reserved for the filesystem.
-mIt specifies the percentage of the filesystem blocks reserved for the super-user.
-cIt checks the device for bad blocks before creating the file system.
-lIt specifies the size of each inode in bytes.
-LIt sets the volume label for the filesystem to new-volume-label.
-jcreates the filesystem with an ext3 journal
memorize

debugfs

Question Answer
-fcauses debugfs to read the listed commands
-ccauses the filesystem to be opened in read-only mode
-wopen the filesystem in read-write mode
-ispecifies that device represents an ext2 image file
memorize

e2fsck

Question Answer
-fforces checking
-prepairs bad blocks without requiring user interaction
-yanswers yes to all queries by e2fsck
-nanswers no to all queries by e2fsck, which prevents changes from being made to the filesystem
-vdisplays verbose output
memorize

cpio

Question Answer
-dcreates the leading directories
-vlists the files as they are processed
-uensure that all files are replaced with the versions from the backup file
-rinteractively renames files
memorize

tar

Question Answer
-jcompress the size of an archive by using the bzip2 utility
-cspecify the creation of a new archive
-zcompress or decompress an archive with the gzip utility
-xextract the contents of an archive
-Zcompress the size of an archive by using the compress utility
memorize

mv

Question Answer
-umove the file only when the source file is newer than the destination file, or when the destination file is missing
-iprompt you for permission before overwriting any files
-fprevent you from being prompted if you want to overwrite the files
-vcause the mv command to explain any actions it takes
memorize

file type characters

Question Answer
llinked file
memorize
: regular file
Question Answer
ddirectory
cspecial file
ssocket
ppipe
memorize

touch

Question Answer
-aChanges the access time only
-cDoes not create any file
-mChanges the modification time only
-rUses the file's time instead of current time
memorize

Permission set code

Question Answer
uOwner
gGroup
oOther
aAll
memorize

Change type code

Question Answer
+Add
memorize
: Remove

: Set equal to

Permission to modify code

Question Answer
rRead
wWrite
xExecute
XExecute only if the file is a directory or already has execute permission
sSUID or SGID
tSticky bit
uExisting owner's permissions
gExisting group permissions
oExisting other permissions
memorize

find

Question Answer
-maxdepth XSearch current directory as well as all sub-directories X levels deep.
-inameSearch without regard for text case.
-notReturn only results that do not match the test case.
-type fSearch for files.
-type dSearch for directories.
-permspecify the permission string pattern matching which files should be selected
memorize

repquota

Question Answer
-vPrints a header line before the summary of quotas for each filesystem.
-uSpecifies that only user quotas are printed.
-lEnables long user names to be printed on the repquota report. The default behavior of the report will be to truncate the name at 9 characters. If the -l option is specified, the full user name will be used.
-gSpecifies that only group quotas are printed.
-cChanges the output of the command to a colon-delineated format.
-aSpecifies that quotas are printed for all filesystems enabled with quotas in the /etc/filesystems file.
memorize

telinit

Question Answer
Runlevel 0Shuts down the system.
Runlevel 1Runs the system in single user mode which is useful for administrative tasks.
Runlevel 2Runs the system in multiuser mode but without networking services.
Runlevel 3Runs the system in multiuser mode with networking but without a GUI. This is the normal or default run-level.
Runlevel 4Runs the machine in a state as specified by the user.
Runlevel 5Runs the system in multiuser mode with networking and with a GUI started.
Runlevel 6Reboots the system.
memorize

shutdown

Question Answer
-aUses the /etc/shutdown.allow file to verify user permission.
-fCause "fast" reboot by skipping fsck during the next boot
-tTells the init daemon to wait for a specified number of seconds to change the system to another runlevel after sending the processes the warning.
-kSends only warning messages to users.
-rReboots the server after shutdown.
-hHalts the server after shutdown.
-cCancels an already running shutdown process.
memorize

/etc/inittab

Question Answer
1id
2runlevels
3action
4process
memorize

vi