1 2 3 4 |
To eject a disc or media from the command line on Mac # drutil tray open # drutil eject |
1 2 3 4 |
To eject a disc or media from the command line on Mac # drutil tray open # drutil eject |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Check the disks, diskutil list # Umount the automounted volume diskutil umount /dev/disk5s2 # Make a new directory mkdir /Volumes/5 # Mount your drive /sbin/mount_ntfs -o rw /dev/disk5s2 /Volumes/5 # Kutay Zorlu # other command, mount -t ntfs /dev/disk6s1 /Volumes/usb6/ mount -t ntfs-3g /dev/disk6s1 /Volumes/usb6_kutay/ # |
1 |
find . -type f -name '*.jpg' -exec du -ch {} + |
At the end you will see the total size,
1 2 3 4 5 6 7 |
route del -net 10.1.0.0 netmask 255.255.255.0 metric 2 route del -net 0.0.0.0 gw 192.162.2.2 netmask 2.2.2.2 dev eth9 route del -net 0.0.0.0 netmask 2.2.2.2 gw 192.162.2.2 dev eth9 route del -net 10.1.0.0 netmask 255.255.255.0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
public static String getFileName(Part filePart) { String header = filePart.getHeader("content-disposition"); for(String headerPart : header.split(";")) { if(headerPart.trim().startsWith("filename")) { return headerPart.substring(headerPart.indexOf('=') + 1).trim() .replace("\"", ""); } } return null; } |
1 2 3 |
SELECT id FROM my_table ORDER BY id DESC LIMIT 1 SELECT MAX(id) FROM my_table |
1 |
System.getProperty("catalina.base") + File.separator + "bin" |