youraa Posted June 19, 2006 Share Posted June 19, 2006 hi i 've been trying to change my resolution acording to your instructions and cannot menage could you pls help, i'm adding messages from my terminal -bash: bluntman: command not found zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key></string>1280x1024x32@60</string> -bash: syntax error near unexpected token `<' zdzislaws-computer:~ zdzislaw$ <string> "Graphics Mode"="1280x1024x32@60" </string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key> </string>1280x1024x32@60</string> -bash: syntax error near unexpected token `<' zdzislaws-computer:~ zdzislaw$ <string>"Graphics Mode"="1280x1024x32@60"</string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <string>"Graphics Mode"="1280x1024x32@60"</string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key> </string>1024x768x32@60</string> -bash: syntax error near unexpected token `<' zdzislaws-computer:~ zdzislaw$ <string> "Graphics Mode"="1280x1024x32@60" </string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <string> "Graphics Mode"="1280x1024x32@60" </string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ pls help I'm new in these matters Link to comment Share on other sites More sharing options...
youraa Posted June 19, 2006 Share Posted June 19, 2006 hi i 've been trying to change my resolution acording to your instructions and cannot menage could you pls help, i'm adding messages from my terminal -bash: bluntman: command not found zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key></string>1280x1024x32@60</string> -bash: syntax error near unexpected token `<' zdzislaws-computer:~ zdzislaw$ <string> "Graphics Mode"="1280x1024x32@60" </string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key> </string>1280x1024x32@60</string> -bash: syntax error near unexpected token `<' zdzislaws-computer:~ zdzislaw$ <string>"Graphics Mode"="1280x1024x32@60"</string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <string>"Graphics Mode"="1280x1024x32@60"</string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <key>Graphics Mode</key> </string>1024x768x32@60</string> -bash: syntax error near unexpected token `<' zdzislaws-computer:~ zdzislaw$ <string> "Graphics Mode"="1280x1024x32@60" </string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ <string> "Graphics Mode"="1280x1024x32@60" </string> -bash: syntax error near unexpected token `newline' zdzislaws-computer:~ zdzislaw$ You have to add that to your com.apple.boot.plist Thx for the help:) But must haxe mixed something up my system is not booting anymore I have the grey screen a nd the dashed circle rotating and nothing happens, i read about similar pronlem of one of the guys but coludn't find the solution:( In the file it looked like that: <key>Graphics Mode</key> <string>"Graphics Mode"="1280x1024x32@60"</string> I replaced the <string></string> (I think) which was underneath the line <key>Graphics Mode</key> with <string>"Graphics Mode"="1280x1024x32@60"</string> then I couldn't save Now i know that I should use ctrl O) so i copied the file to the desktop made the changes and overwrote the old file in the preferences folder ehmm does it mean I need to format ? How do i start in yhe -s mode? thx for the help Link to comment Share on other sites More sharing options...
panos Posted June 20, 2006 Share Posted June 20, 2006 Not a good ideal to set a root account. Always use sudo instead. Protects you from Human Error. I LAEK CHICKEN! Link to comment Share on other sites More sharing options...
Korrupted Posted June 20, 2006 Author Share Posted June 20, 2006 I just list it for people who want it. I never said to use it over sudo. Link to comment Share on other sites More sharing options...
kuba Posted July 14, 2006 Share Posted July 14, 2006 Find a file To find a file, use: locate <filename> Example: locate Callisto.kext This will look for anything related to Callisto.kext on your system. -------------------------------- Beside the "locate" command there is the "find" command. "locate" is dependant of the update database, while "find" is not. The locate program searches a database for all pathnames which match the specified pattern. The database is recomputed periodically (usually weekly or daily), and contains the pathnames of all files which are publicly accessible. The find command is dependant on parameters about what you want to find (and where and how). A casual example for the find command: $find /usr -name somefile.txt In the above command you have specified your find path to the /usr directory (or partition). You are searching for a "name" to be specific: "somefile.txt". The find command has many parameters. Just open a terminal and type "man find". Cheers, Solaris Bob Edit: here is a nice goody for the UNIX oriented MacOSX Geeks: http://rmn.ulaval.ca/manuals/oreilly/mac/index.htm Although it is a copyrighted O'Reilly book, it is been put on the web by a university, so I suppose that part is legally covered... Link to comment Share on other sites More sharing options...
willgonz Posted July 17, 2006 Share Posted July 17, 2006 For an editor I like to use Pico. At the terminal type pico and it's there. Link to comment Share on other sites More sharing options...
Crazor Posted August 10, 2006 Share Posted August 10, 2006 There is an IMPORTANT difference between cp and ditto: ditto preserves ressource forks, whereas cp DOES NOT when used without the proper flags. Also, ditto is much more powerful: it can handle archives, strip architectures from universal binaries etc. Consult "man ditto" for more info. Link to comment Share on other sites More sharing options...
Manaka Posted September 4, 2006 Share Posted September 4, 2006 There are some other differences between the cp (and other file related UNIX commands) and Ditto that are Mac OS X version specific. cp and mv in Mac OS X 10.3 and earlier did not support forked files. You had to use the Ditto command (with the appropriate switch - check the man page, or cpMac which was installed if the user had installed the developer tools. As of Mac OS X 10.4 the cp and mv commands are resource fork aware and will work just fine without having to use Ditto. Link to comment Share on other sites More sharing options...
Jdhore Posted September 16, 2006 Share Posted September 16, 2006 sudo asks for the USER password, if it has administrative rights (e.g. /etc/sudoers file)su asks for the ROOT password. that is the difference That's not exactly correct...sudo gives you admin (or root) permissions just for the line in which you Sudo'd. su is to login as root until you close the terminal and you don't su before a command...you: su password command (s) Link to comment Share on other sites More sharing options...
vassalle Posted November 4, 2006 Share Posted November 4, 2006 hey Dax, thanks for responding to my earlier comment regard creating the alias.. i followed your instruction but can't seem to run textedit from the terminal.. i get the following message amir-hamzahs-computer:~ vassalle$ textedit -bash: /usr/sbin/textedit: Permission denied i've followed your instruction correctly, double triple checked it but still get the same error. do you know what am i doing wrong? i'm running 10.4.8 with mikfi kernel. Link to comment Share on other sites More sharing options...
realfolkblues Posted January 3, 2007 Share Posted January 3, 2007 THanks for this it helps alot! Link to comment Share on other sites More sharing options...
Korrupted Posted February 2, 2007 Author Share Posted February 2, 2007 I went ahead and made this a sticky so it's easier to find since Terminal is probably -the- most used program in OSX when experimenting with it. Link to comment Share on other sites More sharing options...
myha Posted February 4, 2007 Share Posted February 4, 2007 Hi, can someone please tell me how to use aliases on mac? On linux I had .bashrc into which I added the aliases, how to do it on mac? Thanks, BR Link to comment Share on other sites More sharing options...
asap18 Posted February 4, 2007 Share Posted February 4, 2007 Usually you can just right click the file/folder and hit "make alias" Link to comment Share on other sites More sharing options...
myha Posted February 7, 2007 Share Posted February 7, 2007 Hi, I ment aliases from console... for example: ll="ls -la" this is what I use on linux... Link to comment Share on other sites More sharing options...
Markandeya Posted February 11, 2007 Share Posted February 11, 2007 I've found this side,it may help to you as well. http://www.kernelthread.com/mac/osx/tools.html Link to comment Share on other sites More sharing options...
nimb0z Posted February 13, 2007 Share Posted February 13, 2007 whats the command to view the cd/dvd drive via terminal? I need to copy some files from there to system folder. Link to comment Share on other sites More sharing options...
Korrupted Posted February 14, 2007 Author Share Posted February 14, 2007 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. Link to comment Share on other sites More sharing options...
soup4you2 Posted February 16, 2007 Share Posted February 16, 2007 (edited) 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. Edited February 16, 2007 by soup4you2 Link to comment Share on other sites More sharing options...
peterblood Posted February 22, 2007 Share Posted February 22, 2007 to make an alias, just type alias ll='ls -l' Link to comment Share on other sites More sharing options...
MONGO! Posted March 19, 2007 Share Posted March 19, 2007 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 Link to comment Share on other sites More sharing options...
dan98203 Posted March 20, 2007 Share Posted March 20, 2007 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. Link to comment Share on other sites More sharing options...
SunLizard Posted April 11, 2007 Share Posted April 11, 2007 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 Link to comment Share on other sites More sharing options...
triofour Posted May 9, 2007 Share Posted May 9, 2007 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 Link to comment Share on other sites More sharing options...
Gooly Posted May 21, 2007 Share Posted May 21, 2007 Will be usefull, if you can include few usefull kernel parameters. Link to comment Share on other sites More sharing options...
Recommended Posts