Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I thought it was a good idea to mess around with my terminal and install a lot of things I didn't know on to it. I have come to my senses are need to restore it so it is clean like the day I got it. I have looked around and can not find anything on google.
Is there any commands I can run which will wipe it and start a fresh?
This is what I stupidly installed
https://github.com/skwp/dotfiles
I have tried running
rm -rf ~/.yadr
But nothing happens.
Look in ~/.profile for anything strange. Usually that contains at most a PATH definition. Or, look in ~/.bash_profile. Take a copy first and delete anything you don't like the look of!
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm guessing this should be easy but I can't work anything out.
I'm using terminal on my Mac (latest OS). I'm connecting to a web server and running this command:
sudo nano /etc/apache2/apache2.conf
I then see the config file. I can change things, but for the life of my I can't save it. I can see the list of options highlighted at the bottom saying use ^X to exit and I've tried :w! etc. but nothing. The problem seems to be whatever I type is being used as changes to the file, so some how I need to type into terminal but not as an edit to the file.
If I close the terminal then everything is ignored, so that won't work.
I'm using Ubuntu 12.04 LTS if that means anything.
I bet this is easy, but it's really frustrating for me.
^X means to press the control key and X rather than type it in.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm brand new to using Mac Terminal and I can't seem to figure out what's going on when I try to navigate directories. I have experience in MS-DOS (from many many years ago...but I still get the basic idea) and it's not working the way I'd like it to.
I'm trying to navigate to any directory and it's not allowing me to. If I type:
cd/Applications
It's giving me the error:
-bash: cd/Applications: No such file or directory
I've tried to navigate to it from the default directory and I also tried to navigate to it after typing:
sudo -s
Which I read was how to get to the absolute root directory. I know this is impossibly basic but can someone point me in the right direction on what I'm doing wrong? Thanks!
You need a space between the command name, "cd", and each of its arguments, in this case directory name "/Applications". So:
cd /Applications
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'd like to know, if there is any problem when I set my .bash_profile or other configs such as .irssi or .slate as symbolic links. The thing is, I would like to git all my configs and scripts in /usr/local/bin(I'm on OS X), so that I have version control and a backup for them. This way, I can also use them on other machines.
I was just wondering whether anything could break, if I'm doing that.
Yes as long as the symlinks are valid and the user has proper permissions to read those locations, you should not have any problem.
Nothing breaks, that's exactly how people put their dotfiles under version control
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I did "rm -R *" under MAC Lion terminal, and apparent the deleted files didn't go to trash. Not sure whether there is an easy way to restore them or not.
Try to use testdisk/photorec to recover the files. It's free and open source, and works fairly well. If you have homebrew installed, it's as easy as
brew install testdisk
Edit: Just realized, this is offtopic.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have a slight problem with the openldap server installed with Mac OS X 10.6.8 (regular, not server). When I launch slapd in a terminal, it stops itself after 1 or 2 seconds... I just have the time to see its process... It doesn't seem to crash, because when I specify a log file in the configuration, the log is created, but empty.
However, when I launch it with the debug option, for example -d 1,it doesn't fork and stays in the terminal (that's the documented behavior) and it runs normally. I can connect, and so on... Meaning, I presume, that's not a config problem.
Is there something stupid I've forgotten? (btw, I've repaired the authorizations, just in case, but that doesn't change the problem...)
Thanks in advance!