Skip to content

Instantly share code, notes, and snippets.

@jcanfield
Last active February 27, 2017 09:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcanfield/bdf1376d18360e64885464e125f5f08d to your computer and use it in GitHub Desktop.
Save jcanfield/bdf1376d18360e64885464e125f5f08d to your computer and use it in GitHub Desktop.
[Ubuntu 16.04] Device Information
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
# These replace cron's entries
1 5 cron.daily run-parts --report /etc/cron.daily
7 10 cron.weekly run-parts --report /etc/cron.weekly
@monthly 15 cron.monthly run-parts --report /etc/cron.monthly
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
cryptswap1 UUID=6453bc8c-77c5-4d1b-943c-afc5a8b3653a /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
/dev/sda1: UUID="b587efaa-5a9d-4435-b15f-f9031007991a" TYPE="ext4" PARTUUID="1549f232-01"
/dev/sda5: UUID="4f6e1217-d9be-4874-a125-9f7703b493e1" TYPE="ext4" PARTUUID="1549f232-05"
/dev/sdb1: LABEL="Media3" UUID="65d6a733-9f2e-494e-8510-478081774271" TYPE="ext4" PARTUUID="fec955ff-eada-4b33-afee-d9c2c692cb42"
/dev/sdc1: LABEL="Media4" UUID="1ea74d78-dbb5-4c98-9f1c-477c6a2a7166" TYPE="ext4" PARTUUID="f5e89255-92b9-4b44-895a-5deac28cc602"
/dev/sdd1: LABEL="Media0" UUID="2c2dd467-a852-4313-ad28-0eb343169abc" TYPE="ext4" PARTLABEL="MEDIA0" PARTUUID="41977600-d143-459d-96ae-302ddc4c7e44"
/dev/sdd2: LABEL="Music" UUID="c77d283d-5be6-4124-8ec3-722c7eac742c" TYPE="ext4" PARTLABEL="Music" PARTUUID="287f44ad-72f3-4d19-9b4f-332d295ae970"
/dev/loop0: TYPE="squashfs"
/dev/sda6: UUID="6453bc8c-77c5-4d1b-943c-afc5a8b3653a" TYPE="swap" PARTUUID="1549f232-06"
/dev/sde1: UUID="2016-07-19-21-27-51-00" LABEL="Ubuntu 16.04.1 LTS amd64" TYPE="iso9660" PTUUID="40a863e7" PTTYPE="dos" PARTUUID="40a863e7-01"
/dev/sde2: SEC_TYPE="msdos" UUID="0F7B-9366" TYPE="vfat" PARTUUID="40a863e7-02"
/dev/dm-0: UUID="d6ed1c23-64d6-43f4-b32e-5e8ad3ccaa93" TYPE="swap
# This file assigns persistent names to network interfaces.
# See iftab(5) for syntax.
enp0s10 mac e0:cb:4e:66:1a:fb arp 1
wlp5s0 mac 00:26:82:3a:55:36 arp 1
#!/bin/bash
# Usage sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
# Synopsis: Displays all HDD infomration for current system
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 931.5G
├─sda1 ext4 65.2G /media/ubuntu/b587efaa-5a9d-4435-b15f-f9031007991a
├─sda2 1K
├─sda5 ext4 843G /media/ubuntu/4f6e1217-d9be-4874-a125-9f7703b493e1
└─sda6 swap 23.3G
└─cryptswap1 swap 23.3G [SWAP]
sdb 1.8T
└─sdb1 ext4 1.8T /media/ubuntu/Media3 Media3
sdc 931.5G
└─sdc1 ext4 931.5G /media/ubuntu/Media4 Media4
sdd 1.8T
├─sdd1 ext4 1.3T /media/ubuntu/Media0 Media0
└─sdd2 ext4 536.6G Music
sde iso9660 7.5G /cdrom Ubuntu 16.04.1 LTS amd64
├─sde1 iso9660 1.4G Ubuntu 16.04.1 LTS amd64
└─sde2 vfat 2.3M Ubuntu 16.04.1 LTS amd64
loop0 squashfs 1.4G /rofs
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment