Skip to content

Instantly share code, notes, and snippets.

@gekitsuu
Last active December 25, 2017 06:18
Show Gist options
  • Save gekitsuu/81dd119a4811b8f617f3f78ee822881f to your computer and use it in GitHub Desktop.
Save gekitsuu/81dd119a4811b8f617f3f78ee822881f to your computer and use it in GitHub Desktop.
it_questions.txt
##########################################################
# Question 1 #
##########################################################
# What will the output of the following be?
for x in $(seq 1 10);do
echo $x;
done
##########################################################
# Question 2 #
##########################################################
# Given a directory of files that looks like:
# avatars
# ├── AdamG.jpg
# ├── adamgopher.png
# └── autobots.jpg
# What will the following command output?
find ./ -name '*.jpg'
# How else might you accomplish the same thing?
##########################################################
# Question 3 #
##########################################################
# explain what each field is in the following output
drwxr-xr-x 2 adam.glenn staff 68B Oct 5 08:43 AnacondaProjects
drwx------ 6 adam.glenn staff 204B Nov 29 2016 Applications
drwx------+ 6 adam.glenn staff 204B Oct 17 12:33 Desktop
drwx------+ 22 adam.glenn staff 748B Aug 9 08:32 Documents
drwx------+ 4 adam.glenn staff 136B Oct 16 14:31 Downloads
drwx------@ 70 adam.glenn staff 2.3K Oct 14 10:09 Library
drwx------+ 4 adam.glenn staff 136B Mar 9 2017 Movies
drwx------+ 5 adam.glenn staff 170B Feb 9 2017 Music
drwx------+ 10 adam.glenn staff 340B Sep 7 14:26 Pictures
drwxr-xr-x+ 5 adam.glenn staff 170B Jun 22 2016 Public
drwx------ 8 adam.glenn staff 272B Aug 29 15:04 VirtualBox VMs
drwxr-xr-x 9 adam.glenn staff 306B Oct 4 10:02 bin
drwxr-xr-x 3 adam.glenn staff 102B Aug 2 09:06 boxes
drwxr-xr-x 18 adam.glenn staff 612B Jul 10 11:02 certs
drwxr-xr-x 5 adam.glenn staff 170B Aug 1 2016 gorepos
drwxr-xr-x 34 adam.glenn staff 1.1K Oct 17 10:00 repos
##########################################################
# Question 4 #
##########################################################
# explain the following output
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.94.0.3 netmask 0xff000000
inet 127.94.0.2 netmask 0xff000000
inet 127.94.0.1 netmask 0xff000000
nd6 options=201<PERFORMNUD,DAD>
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 98:01:a7:a0:1f:2b
inet6 fe80::457:89de:9470:6b4b%en0 prefixlen 64 secured scopeid 0x4
inet 10.50.10.195 netmask 0xfffffe00 broadcast 10.50.11.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
options=60<TSO4,TSO6>
ether 4a:00:06:62:7e:d0
media: autoselect <full-duplex>
status: inactive
en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
options=60<TSO4,TSO6>
ether 4a:00:06:62:7e:d1
media: autoselect <full-duplex>
status: inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment