Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Would like to do this: Make terminal command do the same like lxterminal.
So I think i will need to create a link to it.
ln -s lxterminal terminal
this doesnt work, maybe I need to trace where the lxterminal is, but how?
You have (at least) two options.
Create a symbolic link:
ln -s $(which lxterminal) /path/to/terminal
Create an alias:
alias terminal='lxterminal'
Both options make the assumption that lxterminal is in your ${PATH}.
The symbolic link approach requires write access to the placeholder "/path/to" (${HOME}/bin or some such) and for this to be in your ${PATH} too. This is the more robust solution, but the alias may suffice if you just want to save typing at the prompt.
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've found it's really difficult to setup path variable. I've tried a lot of combinations but nothing works at all. My over 1h work results are but as you see on screenshot (http://puu.sh/33n0X.png )
echo $PATH
give strange directory and
rm -rf k.txt
doesn't work at all. Does anyone has idea what is wrong there? I'm totally confused about it
If you want something a little more "normal", you can suppress the current PATH being appended, and just build your own.
In your ~/.bash_profile, put something to this effect
PATH=/bin
and if you want System32 you can add it as well
PATH=/bin:${TMP%U*}windows/system32
Example
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have written a C program, which will monitor all the communication taking place through the Firefox browser in Linux. So I need to execute my program as soon as Firefox starts. Please suggest me how do I do so.
Write a bash wrapper script
#!/bin/bash
my_c_program
firefox
Name it something useful and place it on a path that is mentioned in $PATH.
Alternatively, you can put it in an alias:
alias firefox_starter='my_c_program; firefox'
Put this line in your startup program (.bashrc)
You could create a firefox extension which wraps your program in an XPCOM Component. Here is a tutorial for creating firefox extensions.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
When I SSH into my server, it has a really long name
user#this-is-a-really-really-really-really-long-server-name:~$
How can I change this to
user#short-name:~$
I'm not sure what to even google for.
Like Matt said. There is similar question on Unix.stackexchange
And you find some Background
here
Modify PS11
PS1="touch me : "
question is if you want to really change the hostname of the server, or only whats displayed at the beginning of the cli.
if you want to change the hostname, you better check specifically for your distribution.
if you only want to change what's displayed at the beginning of the cli, alter the ${PS1} variable via ~/.bashrc (user specific) or /etc/profile (global) or something like that.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I was browsing a directory on a Linux machine, and when doing a detailed listing I noticed that a link is pointing to itself, for example:
somelink -> /path/to/directory/somelink
I am wondering what is the reason for doing such a thing?
If the somelink is in /path/to/directory then this is an invalid symlink. If you try to access it, the filesystem will give you an error (probably something like too many levels of symbolic links*). It could have been a typo (or some other mistake) when it was created, or the symlink got moved somehow and ended up linking to itself.
There's no good reason for a circular symlink. Most probably, it was created by accident.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
is it possible to synchronize two linux machine over internet? thanks
Any solutions using any Technique
?
E.g. rsync. "Synchronize" can mean a lot of different things though, below is a prototype rsync-command:
rsync --archive --delete --update /directory/to/sync $REMOTE_HOST:/directory/on/remote/host
You will have to carefully read man rsync or other resources on the available switches and behaviours though, it is a versatile program.
Most often, I find rsync the "correct" way to do it, without reinventing the wheel.