简体   繁体   中英

How create .gdbinit in home directory (Mac OS)

l Hello everybody,I need to create a .gdbinit file to use the command "go" on gdb. Our prof told us to create it in home directory and it was simple. On Linux all I needed was to being root. Now with Mac I can't create the file even if I am root. From command line if I type " touch .gdbinit " or if I create the file in a different directory and try to move it in home the result is always "Operation not supported". Now I am very confused because I thought to be a god as root. Maybe this is true on Linux,Mac is different. However someone know how to create a .gdbinit file in home? I work on Sierra 10.12.6

There is no reason why this shouldn't work:

cd
touch .gdbinit

Now check it exists:

ls -la .gdbinit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM