Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Command

Description

Example

bless <file>hex editor> bless ~/file.bin
mountList mounts> sudo mount
mount -aRe-mount 
umount <mount_point>Unmount> sudo umount /home/test/projects/yas-arm/run/partition_1
diskutil -lList partitions> sudo diskutil -l
lsblkList disks and partitions

> sudo lsblk

sudo lsblk 
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 80G 0 disk 
├─sda1 8:1 0 77G 0 part /
├─sda2 8:2 0 1K 0 part 
└─sda5 8:5 0 3G 0 part [SWAP]
sdb 8:16 1 3.5G 0 disk 
├─sdb1 8:17 1 8M 0 part 
├─sdb2 8:18 1 1.2G 0 part 
└─sdb3 8:19 1 500M 0 part 
sr0 11:0 1 1024M 0 rom

kill -STOP <processId>Pause a process> sudo kill -STOP 208
kill -CONT <processId>Resume a process> sudo kill -CONT 208
nm <exe>View executable symbols. Needed for debugging. > nm rdTest
minicom -ssetup minicom
arp -a List Mac/ip addresses on network

arp -a

OUTPUT: 

appletv-livingroom.jmehan.com (192.168.1.33) at c8:d0:83:e5:98:3 on en0 ifscope [ethernet]

pihole.jmehan.com (192.168.1.51) at d0:ca:ab:cd:ef:1 on en0 ifscope [ethernet]

...

type CMD
display cached location of command> type cfssl
cfssl is hashed (/usr/local/bin/cfssl)
hash -r
clear cache of all commands> hash -r 
hash -d CMD
remove command location from cache> hash -d cfssl

Apt-get Commands

Command

Description

apt-get updateupdate apt-get info
apt-cache search <keyword>
search the list of available packages
apt-get install <application>install application
apt-get remove -V <application>remove application
apt-cache policy <application>show versions
apt-get install -y -q 
  docker-engine=1.11.1-0~trusty
Install a particular version of docker

...