Flashcards
Linux Flash Cards
Cards in this deck (71)
- 1What is the definition of an operating system?An operating system is an efficient interface between the user & the computers resources. An operating system has the ability to execute software in addition to itself.
- 2What can an emulator do?Emulators can run software of a different cpu architecture on a host device.
- 3What is visualization / What does it allow you do to?Visualization allows you to run software of the same cpu architecture on a host, like a second computer.
- 4Linux Command lsLook at files in a directory
- 5ls -aList all files including hidden files.
- 6dfShows free space on a partition
- 7cfdiskUsed to partition a hard drive. Can also delete partitions.
- 8rmdelete files
- 9ddCopy partition, make copy, also used to wipe & sanitize hard drives.
- 10dcflddSame as the dd command. This command will show more output / status information.
- 11rsynchCopy files
- 12catshows you contents of text files.
- 13grepUsed to filter content
- 14mountUsed to mount a formatted file system.
- 15mkfsUsed to make/format a file system
- 16umountUsed to unmount a file system
- 17mkdirMake/create a directory
- 18pwdPrint working directory
- 19cdChange directory
- 20hdparmShows useful information about the hard disks. Can also be used to alter benchmarks.
- 21hexdumplooks at a file in hexadecimal values.
- 22What is the syntax/statement required to successfully sanitize a hard drive or other storage device.dd if=/dev/zero of=/dev/sda
or
dcfldd if=/dev/zero of=/dev/sda - 23vimUsed as a text editor
- 24netstatPrint network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
- 25cutremove sections from each line of files
- 26trtranslate or delete characters
- 27sedSed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed), sed works by making only one pass over the input(s), and is consequently more efficient. But it is sed's ability to filter text in a pipeline which particularly distinguishes it from other types of editors.
- 28tailPrint the last 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.
- 29headThe "head" command is used to show the beginning of a text file. By default it prints out the first 10 lines. For example if you want to see the top 10 lines of the file songs.txt in the current directory you would type:
- 30lsoflist open files
- 31lsof -ilist network ports that are open
- 32findsearch for files in a directory hierarchy
- 33iptablesfirewall command
- 34ifconfigUsed to configure network interfaces.
- 35routeRoute manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig(8) program.
- 36tcpdumpUsed for packet sniffing.
- 37WiresharkGUI used for packet sniffing.
- 38echoUsed to change to "1"
echo is a built-in command in the bash and C shells that writes its arguments to standard output. - 39dmesgdmesg is used to examine or control the kernel ring buffer.
The program helps users to print out their bootup messages. - 40pingPING (Packet INternet Groper) command is the best way to test connectivity between two nodes
- 41tracerouteprints the route packets take to network host
- 42ls usbShows all usb devices that are currently installed.
- 43ls modeShows all kernel devices that are currently installed.
- 44ls pciShows all of the installed pci devices.
- 45manmanual page. Used for information about a specific command.
- 46psprocess list
- 47Explain command completionIf you do not know an entire command, you can press the tab key and Linux will show all available commands.
EX: If you were looking to use iptables but couldn't remember anything but "i" pressing i plus the tab key would list all available commands beginning with letter i. - 48Which website provides a list of all the most popular Linux distributions?distrowatch.com
- 49OS virtualization provides the Cybersecurity professional what benefits?The ability to conduct pen testing in a closed laboratory environment, while requiring only one pc.
- 50What is the advantage of live cd technology over hard-disk installable distributions?Live cd's do not need to be installed onto a hard-disk;therefore, they make for an excellent testing environment.
- 51The master boot record of a disk drive encompasses?The first 512 bytes of the disk.
- 52The Unix operating system is also known as?The Unix programming environment.
- 53Which Unix distribution is less than 60mb in size?DSL
- 54Match the device files with the corresponding devices: hda hdb hdc hdd sda2 sdb1hda: Master on the primary IDE controller
hdb: Slave on the primary IDE controller
hdc: Master on the secondary IDE controlle
hdd: Slave on the secondary IDE controller
sda2: 2nd partition on SCSI or SATA device #1
sdb1: 1st partition on SCSI or SATA device#2 - 55Which command will delete the entire /etc directory, including all files & subdirectories?rm -r/etc
- 56When was Unix developed?In the late 1960's
- 57The the Unix os, the ability to allow the user to chain commands together is called?Pipes
- 58Who first invented the RAMAC hard drive?IBM
- 59Which command would list only files in the entire file system that are larger than 1mb in size?find / -size + 1048576
- 60When does the kernel of an OS begin execution?Right after loading the code located at sector 0 of the boot partition.
- 61What file contains the IP address of Unix systems DNS resolver?/etc/resolv.conf
- 62Which command to enable "packet sniffing" function?tcpdump -i eth0 -v
- 63Syntax that would create a default gateway of 192.168.1.1route add default gw 192.168.1.1
- 64Command to enable routing?echo "1" >/proc/sys/net/ipv4/ip_forward
- 65Linux GUI package manager is called?synaptic
- 66Website to obtain software in rpm format?rpm.pbone.net
- 67What is the command line package manager?apt-get
- 68Software/package manager programs:rpm,apt-get,synaptic,tar
- 69Command to put eth0 in promiscuous mode?ifconfig eth0 promisc
- 70List steps for compiling software in Linux:Download the file into root directory
unzip file: tar xzf "filename"
change into the unzipped directory
./configure
make
maske install - 71List the commands to make your Linux box a NAT firewall:1. echo 1
Information
- Description
- Linux Flashcards on Linux Flash Cards, created by lelupixie on 22/04/2015.
- Created by
- lelupixie
- Views
- 17
- Rating