Macintosh terminal parancsok
uptime : uptime:)
last reboot : újraindítás history; ugyan ez shutdown-nal is jó (last shutdown); illetve user history, last %username% pl.: last imi
sudo mdutil -a -i off : snow leo alatt spotlight kikapcsolása, ugyan ez ‘on’-al bekapcsolás
time cat : stopper, ctrl+c megszakítja a futást
DMG-ISO ISO-DMG kovertálás…
Convert a DMG file to ISO
hdiutil convert /path/imagefile.dmg -format UDTO -o /path/convertedimage.iso
Convert an ISO file to DMG format
hdiutil convert /path/imagefile.iso -format UDRW -o /path/convertedimage.dmg
Show all DHCP information
ipconfig getpacket en1
flushDNS
dscacheutil -flushcache
mail with sendmail
:
SMB mount Terminal (Command line)
from osxdaily.com:
OS X Daily reader Dan Luna sent in the following tip on accessing Windows shares on the Mac from the command line: “My Mac is nestled into a sea of Windows PC’s at the office, and so I am frequently accessing SMB shares to share data and files. Accessing SMB/Windows shares on the Mac is really easy from the GUI but I spend a lot of time in the command line and I always like to find a way to do things using the underpinnings of Mac OS X. With this in mind, here’s how to access SMB shares via the command line in OS X:”
This first command lists the available shares at the destination IP:
$ smbclient -U user -I 192.168.0.105 -L //smbshare/
Now you’ll want to pass set your SMB shares mount point:
$ mount -t smbfs -o username=winusername //smbserver/myshare /mnt/smbshare
and finally you’ll want to gain access to the SMB share by specifying your Windows login and the machines IP address:
$ mount -t cifs -o username=winusername,password=winpassword //192.168.0.105/myshare /mnt/share
Thanks for the tip Dan! I haven’t been able to check if this works because I’m on an all Mac network, but the commands seem valid so I see no reason it wouldn’t. Obviously you’ll need to fill in your own unique usernames, sharenames, IP addresses, mount points, etc.
I really appreciate Dan’s tip but I think I’ll just stick to the GUI myself…
2 commentsApple.. Snow Leopard.. hmm…
- Snow Leopard-ban, ha Guest user fiókkal történő bejelentkezés után, a többi felhasználó fiók adatai elérhetetlenné válnak… woww várom a javítást, bár sosem használom a vendég fiókot. (http://index.hu/tech/szoftver/2009/10/13/sulyos_hiba_a_snow_leopardban/ és http://news.cnet.com/8301-31021_3-10373064-260.html)
Egyéb tippek osxdaily.com-ról
- Összes process CPU % sorrendben
Terminal: top -F -R -o cpu
- Nero image fájl konvertálása ISO image-é
“Someone recently sent me a Nero Image File and I had no idea what to do with it, but after some looking around I discovered you can easily convert a Nero image File to ISO format. Apparently the only difference between a Nero Image File and a typical ISO is that Nero adds a 300k header to the normal ISO file. Using the command line tool dd we can trim this header and convert the the Nero image file to ISO format. All of this will be done via the Mac OS X command line so launch Terminal and enter the command as seen below.
Convert a Nero Image File to ISO format
dd bs=1k if=image.nrg of=image.iso skip=300
Essentially what this command is saying is that using 1k block sizes, from the input file of image.nrg (our Nero image that needs converting), create an output of image.iso (the desired ISO image file), after skipping the first 300k of the input file (aka the Nero 300k header). Works like a charm! Now you can burn, mount, or image the ISO any way you want, cool huh? “
No commentselmaradás
Elvagyok maradva pár bejegyzéssel… konkrétan pár versenybeszámolóval, ezeket pótolni fogom ! :)
No comments