I would like to set exit node from within tails by using the command line. I am currently using tails live CD. I tried to do this by saving in torrc but it won't save. I though it might store in RAM, but it does not. I tried command line ExitNodes{US}. It gave out this bash:ExitNodes{US}: command not found. Can I do this. If so how? What do I type in terminal? 
            Asked
            
        
        
            Active
            
        
            Viewed 6,471 times
        
    2
            
            
         
    
    
        Jens Kubieziel
        
- 8,630
- 5
- 35
- 116
 
    
    
        Silver
        
- 123
- 1
- 6
1 Answers
3
            
            
        The preferred way should be to put it into your torrc. You wrote in your question, that you couldn't save the file. Did you maybe edit it as the wrong user? Usually you need superuser rights (sudo).
If you want to pass the option on the command line, you could do the following:
tor --ExitNodes "{us}"
You need to put {us} insides quotes, because otherwise your shell will interpret it in a different way. Another way to realise it is to use backslashes:
tor --ExitNodes \{us\}
You can also use echo to write into your torrc:
echo ExitNodes "{us}" | sudo tee -a /etc/tor/torrc
This command appends the line ExitNodes {us} to your torrc.
 
    
    
        Jens Kubieziel
        
- 8,630
- 5
- 35
- 116