Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about the Terminal application or its terminal emulation should use this tag. Use **command-line** for questions about shells or command-line programs that do not specifically involve Terminal.
2
votes
How do I get Terminal to remember previous commands after closing window in SL 10.6.8?
Also, what OS are you on, from Lion onwards Terminal reloads the last 500 lines out output even from the last closed screen on restart. …
4
votes
In terminal, modify the text that comes before $
This is controlled by the shell variable $PS1
You can set this variable to whatever you want, either temporarily or more permanently with a .login or .profile script depending on what shell you use.
…
1
vote
Accepted
Why can't you create/open multiple instances of iTunes?
iTunes uses a database file to maintain a track of all the meta data on the contents of the iTunes library. Opening multiple instances of iTunes would potentially result in the 2nd instance being una …
4
votes
Accepted
Will a Perl script still run after I log out of my user account?
Yes, this is dead easy to test. Write a perl script that appends the date to a file every minute, and run it in the background. Log out, wait 5 minutes, log in, check for 5 entries corresponding to …
20
votes
Accepted
How to merge files after using split command from terminal?
cat xaa > newfile
cat xab >> newfile
cat xac >> newfile
Basically using a single '>' operand send the output to a new file. using a double '>>' operand makes it append the contents to the end of an …
5
votes
How to recursively edit path of symlinks?
In a bash shell, to set a variable, simply use set NAME=bob or set VITAL_SIGNS=none.
You can also set a variable using the output of a command by calling the bash-builtin function read to assign the …
1
vote
How to run a cron job each time the previous execution has finished?
You can type this into pretty much any command line shell, simplest to just open Terminal and type it straight into it
while true
do
/path/to/script.py
sleep 60
date >> /path/to/logfile.txt …
6
votes
Is bash in OSX case-insensitive?
Take a look at your filesystem, as there are both case sensitive and case insensitive variations on HFS. The default is case insensitive, in which case it's not so much a case of BASH, but the underl …
5
votes
3
answers
13k
views
How can I use Terminal to monitor a network interfaces total traffic in Mb
I would like to use the terminal to monitor the network traffic on a given interface, with a view to providing alerts when certain cumulative totals have been exceeded. … I do not wish to download any tools or applications, and just wish to use the tools a standard installation provides for the terminal. …
7
votes
Why is OS X able to send out email without first configuring SMTP?
Now, you can do all this at the command line by passing the appropriate parameters on the terminal, but as long as you have set up your Mail app, this config is already stored, and by simply temporarily … firing up the mail subsystem the terminal commands can grab that info and now have one or more mail smtp servers they can choose to send outgoing messages. …
1
vote
OSX Bash for loop - issues with spaces in folder names?
Either your alias is only pulling the first bit before the space, or your for loop is only reading the first bit
You can test this by adding some test commentary into your commands, I've limited the …