[INFO] Various Unix/Mac OS X terminal commands, And other info! :D |
Welcome to the Genius Bar. Here's how this forum works:
1. Members are encouraged to make a guide that details something that they might have found troubling or challenging.
Chances are, if you've seen the same question asked over and over again, you should write a guide for it.
2. This is not the forum for asking questions. If you have a question about a thread that's already here, feel free to ask it.
Just don't start a thread for a specific question. Use the other forums here for that.
3. Posting links to off-site tutorials is not allowed.
4. That's it! Thanks for sharing your information with the rest of us. :)
To keep this forum clean this forum is moderated. You can post in existing topics but new ones will have to be approved before they show up.
![]() |
[INFO] Various Unix/Mac OS X terminal commands, And other info! :D |
|
Markandeya
InsanelyMac Protégé
|
![]() |
Feb 11 2007, 12:32 PM Post #41
|
![]()
|
|
|
nimb0z
InsanelyMac Protégé
|
![]() |
Feb 13 2007, 07:27 AM Post #42
|
|
whats the command to view the cd/dvd drive via terminal? I need to copy some files from there to system folder.
|
|
Korrupted
Wandering Samurai
|
![]() |
Feb 14 2007, 08:30 AM Post #43
|
![]()
|
It's cd /Volumes/Name_Of_Your_CD where Name_Of_Your_CD is obviously the name of your cd. For example, if you have Warcraft III, its cd name is The Frozen Throne, and thus you would type cd /Volumes/"The Frozen Throne". If you want to see all the drives Mac currently sees, just go to /Volumes with cd /Volumes, then type ls, which will show you a list.
|
|
soup4you2
InsanelyMac Protégé
|
![]() |
Feb 16 2007, 04:31 PM Post #44
|
|
This is not a terminal command but a little trick. sometimes i like the feel of just the console with no GUI present. You need to have it set so you have to type in your username and password.
In the username field enter: >console then press enter.. *poof* full screen terminal. This post has been edited by soup4you2: Feb 16 2007, 04:32 PM |
|
peterblood
InsanelyMac Protégé
|
![]() |
Feb 22 2007, 02:54 AM Post #45
|
|
to make an alias, just type
alias ll='ls -l' |
|
MONGO!
InsanelyMac Protégé
|
![]() |
Mar 19 2007, 03:17 AM Post #46
|
|
Found this browsing around for Terminal info.
It's a fun command that lets you set your preferred screensaver as your desktop: /system/library/frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/contents/macos/screensaverengine -background |
|
dan98203
InsanelyMac Protégé
|
![]() |
Mar 20 2007, 11:41 AM Post #47
|
|
Hi everyone, I would like to know if there is a way to enable the administrator account through the terminal since it is not active on the Imac? i don't have any passwords for the users who are currently on the imac so I can't login to any accounts.
|
|
SunLizard
InsanelyMac Protégé
|
![]() |
Apr 11 2007, 01:20 PM Post #48
|
![]()
|
Greetings,
I'm *trying* to get OSX86 (10.4.8 patched w/SSE2 & SSE3) installed on my homebulit system. I've got some Linux/Unix experience (in other words, I can hurt myself in a shell) but am not familiar with the capabilities of the Single User mode when booting. [ie what I can and can't do in single user mode] The Question: Can I mount the drives to the /Volumes/ folder the same way at command line shell the same way as *nix? (eg 'mount /dev/disk0 /Volumes/DVDrom') Background: I can get OSX installed but it has issues on first boot with my PCIe card (specifically addressed in the Video Forum.) I think Callisto kexts will set me free, but I can't get the bloody files of the CD I burned them to as the only drive recognized in Single User ( '-s' at the boot options screen.) Sidenote: I can't get the safe mode '-x' to boot properly either as once its starts to bring up GUI (QE/CI) the machine halts. So I *think* I'm stuck with Single User mode until I get the Callisto drivers installed. Thanks in advance. S_L |
|
triofour
InsanelyMac Protégé
|
![]() |
May 9 2007, 09:56 PM Post #49
|
![]()
|
hy!
i only can start with pressing x while startup! what does it do? i found just descriptions like "force mac os startup"? and: is there any flag for that i could ad to the bootlistfile?! thanks triofour |
|
Gooly
InsanelyMac Geek
|
![]() |
May 21 2007, 01:03 AM Post #50
|
![]() ![]() ![]() ![]()
|
Will be usefull, if you can include few usefull kernel parameters.
|
|
Hugo Guerreiro
OSX86 Dumb Tester...
|
![]() |
Aug 27 2007, 07:11 PM Post #51
|
![]() ![]() ![]()
|
Would anybody be willing to translate this info into other languages? That'd be neat if everyone could have this info, not just us English speakers. Hi this is my first post in the forum and since you asked im responding to you... im Portuguese and i would be glad to translate this guide to portuguese if you still want to. Im a windows user but now im trying to get lost in the mac world ( tryed to install 10.4.6 on a acer aspire 5050 but it wasnt a good experience since i had problems with the kernel at booting up after the installation so im going for the 10.4.9 now to give it another try.) So this guide is being a precious help in understanding how mac works and, like i said, it would be my pleasure to translate it for you in portuguese if you want. PM me or send me the full guide in PDF to hgserv@gmail.com Best Regards Hugo |
|
QuietRiot
InsanelyMac Protégé
|
![]() |
Sep 18 2007, 09:42 PM Post #52
|
|
Not exactly a command, but saves a lot of work and helps on the guessing is the TAB-completion.
For instance: you want to type veryLongFilenameThatYouAlwaysMisspell.txt, just start typing, hit TAB, and it should complete it. It works with a few other things. |
|
hoyanf
InsanelyMac Geek
|
![]() |
Sep 20 2007, 06:55 PM Post #53
|
![]() ![]()
|
Something good for use with Automator e.g. :-Run Shell Script
if [ -d /Volumes/DVD ]then hdiutil unmount /Volumes/DVDfiWhat it will do is that 1- Check if directory /Volumes/DVD exist2- Then run the 'hdiutil unmount /Volumes/DVD'3- EndSave it as Application then add it to your startup itemsAnother tip to look for specific files and or directories...find /Users/user -name yourfilename -type f -print find <location> -name <filename> -type f <file> d <directory> -print <to view>Another thing you can do isfind location -name filename -type f -exec chmod -v 644 {} \; find <location> -name <filename -type f <file> -exec <execute> chmod -v <verbose> 644 {} \;Or you can combine some other functions... |
|
Rickyo
InsanelyMac Protégé
|
![]() |
Oct 5 2007, 08:27 PM Post #54
|
![]()
|
Would anybody be willing to translate this info into other languages? That'd be neat if everyone could have this info, not just us English speakers. Hi everybody, I'm new in this forum but i find it very interesting ^^ I can translate it in French if you want.I can do it for next week ( let's say for Wednesday because i'm a little busy this w-kend) Reply me if it 's ok for you. Bye ^^ |
|
socal swimmer
socal swimmer
|
![]() |
Oct 26 2007, 04:32 AM Post #55
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I feel super-dumb right now, but i cannot find com.apple.boot.plist. I looked in Library/Preferences/SystemConfiguration, and it wasn't there. I looked in spotlight (over the entire hard drive). I typed sudo find . -name "com.apple.boot.plist" into terminal and after about 10 minutes it finished with no output.
I am using 10.4.10 on an emac (G4 1.25GHz). Any ideas? |
|
udnan
InsanelyMac Protégé
|
![]() |
Dec 1 2007, 11:57 AM Post #56
|
|
Can you let us know the other kernel flags which can be used and what they do.
I have to use a -f flag while booting to enable Broadcom440x kernel ext to load in Leopard. With regards. |
|
i9300
InsanelyMac Protégé
|
![]() |
Dec 27 2007, 07:28 PM Post #57
|
|
DaxTsurugi
I have something I did not see on your list on the first page CODE $hdiutil burn filename.iso or CODE $hdiutil burn -noburnverify filename.iso This will not do any verify and be much faster I can kick off a burn in the two seconds to type hdiutil burn filename.iso vs. the navigating and clicking around with a gui burning app. I had to research it and others might find it useful |
|
TheG33k
InsanelyMac Protégé
|
![]() |
Jan 24 2008, 09:20 AM Post #58
|
![]()
|
Here are my Terminal Tweaks:
Make your "ls" more Colorfull: - Open a Terminal - type "vi ~/.bash_profile" - insert the following lines: CODE export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad - Try changing the Color codes for other Colors Make your Vi and Vim Colorfull & More: - Open a Terminal - type "vi ~/.vimrc" for Console vi or type "vi ~/.gvimrc" for Grafical Vim - add some lines into the file: CODE set nocompatible syntax on set tabstop=4 set backspace=2 - you can find more commands if you use google with the words "gvimrc" or "vimrc" Add your own "Commands": - Open a Terminal - type "vi ~/.bash_profile" - instert in example: CODE alias la="ls -la" - close your Terminal and open it again - now you have easy file-list-access via "la" |
|
inimicus
Drunk and Angry Slurs in 31 Flavors
|
![]() |
Jan 25 2008, 09:13 AM Post #59
|
![]() ![]() ![]() ![]() ![]() ![]()
|
Eject!
umount /Volumes/SomeVolume Mount! mount /dev/disk0s2 /Volumes/SomeDir though you might have to mkdir /Volumes/SomeDir first. Comes in handy with stubborn volumes. Keep in mind if you navigate to /Volumes first (cd /Volumes), you can leave out those parts referencing the directory. |
|
Juo
InsanelyMac Protégé
|
![]() |
Jan 26 2008, 09:31 PM Post #60
|
|
Great guide thanks a lot.
|
![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 01:10 AM |