Skip to main content

All Questions

Tagged with
3 votes
2 answers
11k views

Sourcing ~/.bashrc in ~/.profile?

I'm quite new to developing under OSX and assigned some aliases and other preferences in the ~/.profile initially, however it got quite big and messy after a while because I had a lot of Environment ...
G.Rassovsky's user avatar
1 vote
1 answer
3k views

Can I convert the font and SVG to base64 via offline OS X and Linux terminals?

I know how and I can convert the images to base64 via OS X and Linux terminals. But I'm not sure if I can convert the fonts and the SVGs to base64 via offline OS X and Linux terminals. I don't know ...
Censored Name's user avatar
2 votes
1 answer
4k 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 same ...
anjanbacchu's user avatar
  • 1,407
3 votes
3 answers
20k views

Howto start an application remotely, so that GUI is shown locally

This is a beginners question, I know... but I have searched and I'm getting frustrated. I know my way around Lunux pretty well, but I have never had to deal with XServer. Question 1: I SSH from OSX ...
Peter Andersson's user avatar
28 votes
7 answers
111k views

What is the terminal command other than ctrl + c to exit a running Node.js program in a macOS?

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 ctrl ...
Sagi_Avinash_Varma's user avatar
2 votes
3 answers
5k views

cat clipboard text into a terminal?

I have text in the clipboard. I want to cat it in a terminal a pipe it into another command. The exact use case is a PEM encoded X509 certificate on a website presented as text (-----BEGIN ...
jww's user avatar
  • 12.3k
25 votes
4 answers
10k views

How to get tree -a to ignore .git directories?

I love using tree to list directories, and I have a git repository with all my dotfiles. For me to be able to see them I need to do tree -a, but that will also list the contents inside the .git ...
user avatar
2 votes
2 answers
2k views

Is there a serial terminal program that allows filtering the messages? [closed]

For the serial terminal program choices, we have hyperterminal and putty on Windows; minicom and screen on Linux/Mac. But as far as I know, none of these has the message filtering functionality as ...
Penghe Geng's user avatar
0 votes
1 answer
295 views

bash directory name with a space in CDPATH

I'm trying to set a shortcut so that I don't have to type a really long directory name so often. In ~/.bash_profile, I am doing something similar to: export CDPATH=".:~:/This/Is/A/Really/Long/Path/...
Joseph Hansen's user avatar
3 votes
1 answer
163 views

Different Path Based on Directory

I am developing an application using Play! Framework version 1.2.4. So I have downloaded this and added its bin/ folder to my path. However, I am getting ready to start another Play! Framework ...
eliot's user avatar
  • 133
0 votes
2 answers
731 views

Start tmux session with only one window but several panes

I'm trying to configure tmux so it starts creating a new session with three panes. One big pane on the left und two small panes on the right side. I set set -g default-terminal "screen-256color" ...
fooness's user avatar
  • 51
0 votes
1 answer
440 views

How to open a new terminal from a terminal in Ubuntu?

I have an assignment in which I have to use socket programming in C to connect multiple clients with the same server. The problem is that every time a client connects to the server the server must ...
user286062's user avatar
1 vote
1 answer
182 views

How does tab-completion "know" what files there are in sub/super folder?

I wonder how tab-completion knows that certain file exists in a directory above the current directory or in the working directory? If I have a file named foobar in a subdirectory and I type in foo ...
Saaru Lindestøkke's user avatar
2 votes
3 answers
217 views

Bash rename to time

How can I rename a file to match the current (rounded) time. If it is for example 10:55 or 11:05 then I would like to rename it to 11. Something like this: mv file.txt file_`date +%H`.txt but with ...
Dado's user avatar
  • 23
7 votes
1 answer
2k views

OS X terminal - put flags/options at end of command?

Is there a way on OS X to put flags at the end of a command instead of at the beginning? On my Ubuntu box, either of these will work, but OS X treats -la as a directory argument in the second example: ...
jjt's user avatar
  • 381

15 30 50 per page