0
votes
1answer
17 views

Bash scripts are not working but on mac terminal those commands in scripts works

I'm stuck with a wired problem.My bash scripts are not working now.It worked previously.I don't know why.Interestingly the commands on the script work when I enter it directly on the terminal. This a ...
0
votes
0answers
14 views

Send email from “mail” command line client from a specific address

I am attempting to send an email from the terminal app "mail" in OS X. I can do so, however I would like to send it from a specific address, rather than the .local address that it sends from by ...
0
votes
0answers
18 views

iTerm/OSX Terminal: Change text margin from edge of window

Currently, I use iTerm on OS X. My terminal looks something along these lines: I came across this picture of a terminal setup on GitHub, and I wanted to imitate it: Specifically, I wanted to ...
0
votes
1answer
37 views

mac how to run a command in a different tab/window of a terminal

In Windows, I can run any program from the command prompt by typing c:> start startup.sh and windows will run the startup.sh in a different command prompt(terminal) window. How can I do the ...
0
votes
0answers
2 views

Encode degree sign in vnc url scheme

I would like to open ScreenSharing.app from terminal like this : open vnc://$user:$pwd@$host This works fine, but I've a password with a "°" sign in there, and it's not working with this one. How ...
0
votes
0answers
33 views

Trying to delete locked files

I'm new to coding and the mac OS and I'm trying to delete a locked file under application support but I'm not sure what code I need to put into terminal in order to do that. If somebody could help, ...
0
votes
1answer
57 views

What is the difference between copy and paste a file using command line terminal and GUI copy paste?

What is the difference between copy and paste a file using command line terminal and GUI copy paste ? Which one is fast ? I think both are same because of same program will execute in background . ...
0
votes
2answers
53 views

What is the Linux terminal ctrl+c to exit a running program in a Mac terminal

In Linux terminal if I run a command like: $ node httserver.js The command runs and by doing ctrl + c the program is terminated and new line comes in terminal for us to enter a command. I felt cmd ...
1
vote
2answers
74 views

Terminal Command Colors

I like to have a really beatiful console style. I use zsh and I have changed my theme to "agnoster" See it under: oh-my-zsh My problem is that I do not have OS X and iTerm2 but I want to have these ...
0
votes
1answer
23 views

diff of two folders excuding file types with OS X command line

I found diff -rq folder1 folder2 however, being an OS X user you get the lovely hidden files like .DS_Store just clouding up the results in the terminal. So, I really don't care about those files. ...
0
votes
0answers
55 views

Entered wrong .bash_profile and now my laptop is running hot

I am just learning how to use the command line and was editing the bash prompt setting in .bash_profile. I made an error in the prompt settings in .bash_profile and I lost the prompt and the ability ...
0
votes
0answers
25 views

understanding HTTrack actions

i just started using HTTrack . and it offers 5 actions whenever i want to download a website for offline viewing. which are 1 Mirror Web Site(s) 2 Mirror Web Site(s) with Wizard 3 Just Get Files ...
1
vote
1answer
88 views

Line-wrapping `less` in OS X (specifically for use with 'git diff')

Using less +-S does not work (although it does ask Chop long lines (press RETURN)), and entering -S once inside less also does not work. Is there a solution? I am usig OS X Mavericks (10.9.3). ...
1
vote
0answers
108 views

OSX terminal command not found

I'm following a guide to setup airport in monitoring mode to do my networking exercise. I've made a shortcut to airport using this command: sudo ln -s ...
0
votes
0answers
4 views

linux net command for osx terminal? [duplicate]

i am trying to establish a way to use the same samba net commant found on a linux distro using samba 3.x but i am unable to identify the mac version of it reference to the net command: ...
2
votes
2answers
72 views

How can I execute a command and immediately quit the terminal?

It should be pretty clear what I'm trying to do: original script.sh: select blah in foo bar oof rab do cmd $blah break done Pretty basic stuff. The problem arises when I try the following: ...
1
vote
3answers
56 views

Is there anything grep does better than ack? [closed]

I started using ack a while ago and it's amazing, but still begs the question: Is there anything grep still does better than ack? Or maybe is there something grep does that ack can't do?
1
vote
1answer
42 views

Is it possible to have interactive directory tree view next to console

To anyone's knowledge, is it possible to accomplish something like the following screenshot: Ideally, I'd like to double click on a file and process the file as if I typed it directly into the ...
1
vote
1answer
37 views

redirect one bash line to stdout/terminal vs log

I have a bash script where I'm redirecting output into a file for logging. if test -t 1; then # stdout is a terminal exec > $OUTPUT_FILE 2>&1 else # stdout is not a terminal, no ...
0
votes
1answer
123 views

Mac OSX: Terminal command to replicate activity monitor network data?

I've been googling around for a while now to try and find a terminal command which can output total kb/s IN and OUT for wifi (en0). The command cannot use sudo, so lsof is out. I've tried using ...
0
votes
1answer
56 views

Directories will list, but are not recognize by cd

New to terminal and having problems out of the gate. Using Terminal 2.1.2 on a Mac running 10.6.8. Using the "ls Documents" will list the contents, but when I try to change directories, which I tried ...
0
votes
1answer
36 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
0
votes
2answers
195 views

How to inactivate network service by terminal on mac os x?

I google but found nothing helpful. the above link was useful when I wanted to create service of any other configuration commands on terminal but I found nothing about how to inactive a service by ...
0
votes
3answers
35 views

How do I determine callable commands provided by an installed Debian package?

I'm a relatively new Linux user, so today I ran into an issue. I installed an emulator front-end ("visualboyadvance-gtk") from my distro's apt repository, but after it finished installing, I couldn't ...
3
votes
1answer
208 views

Handling black text in a dark terminal colour scheme

I tweaked my colours in iTerm (though the specific terminal application I use is not relevant). I chose a dark background colour, and defined red, green, yellow, etc. All was well until I ran npm ...
1
vote
2answers
81 views

Batch output md5 with corresponding file name to text file

I'm trying to output to a text file a md5 checksum of each file in a folder in this specific format: checksumhash1 *NameOfFile1.ext checksumhash2 *NameOfFile2.ext checksumhash3 *NameOfFile3.ext ...
1
vote
1answer
104 views

I'm not terminal literate, and I think I did something wrong

I was trying to resolve an issue I had with Adobe Illustrator on OS X Mavericks, and was told to type this into the terminal: sudo touch /etc/launchd.conf It did not fix the issue, but it did slow ...
0
votes
0answers
115 views

Script to open mutliple terminals with multiple tabs each, move and resize these and execute commands

So I am trying to make a bashscript, which does the above mentioned. Background is that I have to keep an eye on lots of logs, and theres have to have opened many console side-by-side. E.g. one ...
3
votes
1answer
50 views

Ubuntu Linux sudo groupadd option menu keeps showing

I'm a beginner to Ubuntu and Linux. Every time I try to do a groupadd in my Ubuntu terminal the options for groupadd show up and I dont know why. I enter this in my home directory: sudo groupadd –g ...
1
vote
1answer
25 views

Avoid command dump on terminal when hitting 'Ctrl' twice

Whenever I hit Ctrl twice in my terminal, a list of all the possible commands comes up and it takes some time to complete. How can I prevent this behavior?
12
votes
3answers
830 views

What does . .bashrc actually do?

When I enter a eg. a new alias into my .bashrc file I can't use it in that terminal window immediately and until recently I thought I had to restart the terminal to reload the .bashrc file. Then I ...
3
votes
2answers
132 views

How to create a file and insert a line in it using OS X terminal

How can I do the following using the terminal on OS X? Create a file named .inputrc in your home directory and put this line in it: set completion-ignore-case On
0
votes
1answer
39 views

one-way sync from common folders on various computers

I'm not sure if this is a duplicate, but I'm having a really hard time finding a precooked solution. I have a desktop with 1TB hard drive and 3 laptops with 256GB each. I download a lot of music to ...
2
votes
0answers
92 views

Coloured commands in terminal prompt

I've customized the prompt in my Mac terminal like this: export PS1="\[\e[31,1m\] \w $ \[\e[0m\] " This way I get the /working/directory $ in bold red, but I also want to get the command I execute ...
0
votes
1answer
81 views

Two process ids for one terminal in bash linux mint

I am running one bash terminal in linux mint. I wanted to see the process ids of running terminal. So I tried two things: ps -C 'bash' ls -l /proc/*/exe | grep bash Both of this giving two ...
0
votes
1answer
90 views

How do I access wikipedia offline from command line?

I want to open up an offline version of wikipedia from the command line with a specified article (and preferably a window size and position as well). I've downloaded wikipedia dumps in several ...
1
vote
1answer
159 views

Infinite loop in Terminal (ksh) to launch commands

I'm trying to create a loop in terminal to launch every second during the execution of an script the following command. I don't want to create the loop in .sh script file, i'm trying to do in the ...
1
vote
2answers
68 views

What is a command-line equivalent of pressing a key on remote computer via ssh

What are the options to target specific keys on a remote computer and execute the equivalent of virtually pressing them from the terminal via ssh (what would normally be a user pressing them)? ...
0
votes
2answers
80 views

Pass output of one command as input to other

I have searched one file "portmap" inside root directory as follows: find -name "portmap" It gives location of file .init/...somepath./portmap Now I want to change my current directory to the ...
1
vote
2answers
685 views

How to browse root directory in linux mint?

I need to browse root directory in linux mint from command. I tried sudo cd /root It says sudo cd command not found. cd /root says permission denied. Also I need to list the files starting ...
2
votes
2answers
66 views

Linux terminal single command resource usage

I cant find way to monitor single linux terminal command. I want to monitor this command: php index.php parse The problem is this process works too short to get pid so I hope there is something ...
1
vote
1answer
93 views

Tmux - Check if server is up

Is there any known tmux-function, like tmux has-session -t <session>, but to check if the tmux server is currently running? It would be handy when writing automation-scripts. When checking if a ...
4
votes
1answer
6k views

chown - Operation not permitted

I'm logged in as minime. I don't understand why it doesn't allow me to chown file that I own without su privileges. Obviously I can use sudo, but I'd like to understand why? because of www-data ...
0
votes
1answer
59 views

Terminal scrolling from shell script

Is there any way to perform the effect of using the scroll bar in Terminal.app using a shell command? Maybe something cross-platform, that works in Linux terminal emulators too?
1
vote
2answers
68 views

Echoing output to file while seeing it in console in the same time

So I echo output of my programs ran in terminal by command 2>&1 >> /path/toFile.txt It creates few limitations that I want to overcome: It "freezes" and gives no output in terminal - ...
3
votes
1answer
78 views

Send broadcast message on user login

I'd want to add a new feature to my Red Hat 5 so when any user opens a ssh remote session a broadcast message gets delivered to a defined user/all users. How to do it?
2
votes
1answer
1k views

Run Safari from terminal with given URL address without open command

I'm having trouble with opening Safari from terminal. Command I tried is /Applications/Safari/Contents/MacOS/Safari http://www.example.com Safari opens and tries to navigate to the url: ...
0
votes
0answers
64 views

Reading setterm dump output in console vs xterm on archlinux

I have generated some dump files from a console gdb -tui sesson on one archlinux box using setterm -dump -file ss.dump. Using a console, I can view these files on two different archlinux boxes. In ...
1
vote
5answers
108 views

Repeat a terminal command

Suppose I have a terminal command called foo (in reality this would be something like cd or ls or something more complicated. Is there a way that I can perform this command numerous times WITHOUT the ...
1
vote
1answer
79 views

Need help $PATH and terminal commands relink - no sudo, ps, grep

I had to change some path settings to install node.js in turn I must have edited a file that removed the path from the correct directory, whereby sudo, ps, grep etc. live. I am not sure how to reset ...