Skip to main content

Questions tagged [bash]

Bash is a free shell for Unix-like operating systems from the GNU Project.

Filter by
Sorted by
Tagged with
16 votes
1 answer
2k views

When should I put configurations into .bashrc vs into. .bash_profile?

I was looking at Questin 9152: Why doesn’t my path update now?. Which customizations should go into my ~/.bashrc file vs. into my ~/.bash_profile file?
pcapademic's user avatar
  • 3,781
60 votes
9 answers
63k views

How can I prepend a line number and tab to each line of a text file?

How can I append a line number and tab to the beginning of each line of a text file?
Richard Hoskins's user avatar
111 votes
7 answers
243k views

How to remove a symbolic link to a directory?

I am using Ubuntu 8.10, Bash and I made a symbolic link with the following command: ln -s ../test5 I want to remove it now but my rm fails: rm -Rf test5/ rm: cannot remove `test5/`: Not a directory ...
Peter Smit's user avatar
  • 9,576
2 votes
2 answers
875 views

Why doesn't my path update *now*?

I recently installed the newest Qt SDK and I went ahead and added it to my PATH inside of my ~/.bash_profile. I don't see the change. I can source ~/.bash_profile but then my path is twice as long, ...
bobby's user avatar
  • 457
14 votes
8 answers
5k views

Save me from gibberish terminal

While logged in to a remote ssh session, sometimes I do cat to the wrong file (a binary or a diretory) and the display converts to gibberish. The only way out is to close the terminal and open a new ...
flybywire's user avatar
  • 4,090
38 votes
8 answers
30k views

Rename a group of files with one command

If I have a group of files with a .htm extention, how can I rename them all to .html? mv *.htm *.html does not work.
Richard Hoskins's user avatar
37 votes
2 answers
25k views

Can the output of one command be piped to two other commands?

How can I pipe the output of one command to the input of two other commands simultaneously?
Richard Hoskins's user avatar
397 votes
13 answers
287k views

How can I search the bash history and rerun a command?

Can I search history in bash and run the result?
Richard Hoskins's user avatar
0 votes
1 answer
214 views

Pause all but x CPU-intensive tasks

I've got about 50 folders of data to process, and I've got a ruby script that processes a folder's files (which folder it processes is based on a .yml configuration file). And a computer with four ...
Andrew Grimm's user avatar
  • 2,760
23 votes
2 answers
92k views

.profile in Mac OS X?

I have set my terminal preferences to execute: set -o vi at startup. The problem is I don't get that command executed when open a new terminal tab. Is there something like .profile in OS X where ...
OscarRyz's user avatar
  • 4,131
402 votes
21 answers
562k views

How do I detach a process from Terminal, entirely?

I use Tilda (drop-down terminal) on Ubuntu as my "command central" - pretty much the way others might use GNOME Do, Quicksilver or Launchy. However, I'm struggling with how to completely detach a ...
user avatar
29 votes
2 answers
7k views

How to prevent clearing of terminal output when I "exit" an SSH session?

This is the situation: I open a terminal in Ubuntu, and do ssh host-1, which works as expected. From host-1, I do ssh host-2, which again works fine and connects me to host-2. From host-2 I do, for ...
user avatar

1
232 233 234 235
236