How to make linux look in ./ by default


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to make linux look in ./ by default
# 1  
Old 11-19-2010
Question How to make linux look in ./ by default

if i want to run a file from my current directory i have to do
./myfile
how i should config my linux to look automatically in ./

thanks
# 2  
Old 11-19-2010
Hi.

By adding "." to your PATH

Code:
PATH=$PATH:.

From a shell man-page
Quote:
PATH The search path for commands. It is a colon-separated list of directories in which the shell looks for
commands
# 3  
Old 11-19-2010
This can cause security holes, you should be aware, hence why it isn't by default. Someone can drop a file into your home directory and have you run it instead of a system command.

Last edited by Corona688; 11-19-2010 at 04:27 PM..
# 4  
Old 11-19-2010
Quote:
Originally Posted by Corona688
This can cause security holes, you should be aware, hence why it isn't by default. Someone can drop a file into your directory and have you run it instead of a system command.
Such it true, is why I put it at the end.

It's not a great idea to have . in the path.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to make a .exe file executable in Linux?

Dear all, I download a .exe file in my current folder called: ukbmd5.exe. I was told to run the command below: ukbmd5 ukb25278.enc to verify the integrity of the files that you have downloaded and the program ukbmd5 has been made available to assist with decrpying ukb25278.enc. while when I run... (1 Reply)
Discussion started by: forevertl
1 Replies

2. Shell Programming and Scripting

I need to make a control panel for a Linux script

has anyone got experience using jsch? Does it give me a prompt when I run a command/ print result back to me. I need to send commands to a linux database like restart,shutdown,stop database caching etc. But in java I want to build a GUI I can use. TO call database commands. and do these... (3 Replies)
Discussion started by: Samuel12
3 Replies

3. Programming

Make cannot generate .ko linux kernel module

cannot generate .ko file on my linux, although it can generate module.symvers. But when I copy .c file and Makefile to another linux computer, there's no problem. The strange thing is: make is successfuly executed, and returned 0; make output: make -C /lib/modules/2.6.18-92.el5xen/build ... (4 Replies)
Discussion started by: vistastar
4 Replies

4. Shell Programming and Scripting

extension building make GNU Linux

Hi, I do "touch poub.mlc" Download my Makefile, But when I try : make -f Makefile.txt(.txt in order my file to be accepted for upload), it says:"no rule for poub.mlo target" What is wrong in my Makefile(test yourself please before posting)? (1 Reply)
Discussion started by: synhedionn
1 Replies

5. Linux

Linux make bootable archive

Can anybody suggest me software to backup Linux server and to make them boot able (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies

6. UNIX for Dummies Questions & Answers

Linux make file

Hello everyone. I am new to creating make files. I have been able to create simple makefiles for those applications which do not involve database but am unable to create for the ones that do involve database. When I run that make file, it just deletes the .exe file of that application from the... (6 Replies)
Discussion started by: heidik
6 Replies

7. Hardware

How to make terminals with a PC(UNIX/LInux) support?

I want to build a network, in this network there is only one PC and 50 terminals, 50 students can use this system to study UNIX/Linux. In the old days, computer was very expensive, many scientists shared a computer with terminals, that means a terminal has no cpu, memory and hardisk. In... (5 Replies)
Discussion started by: haixiao_liu
5 Replies

8. Red Hat

Re:How to make the linux pc faster

Hi, Can any one help me out in solving the problem i have a linux database server it is tooo slow that i am unable to open even the terminial is there any solution to get rid of this problem.How to make this server faster. Thanks & Regards Venky (0 Replies)
Discussion started by: venky_vemuri
0 Replies

9. UNIX for Dummies Questions & Answers

How to make you linux server for telnet????

I have RH7.2 OS and I want my freinds to login my sys I have TCP/IP connection ppp and I know my IP also I know this ppp-18-21.cyberia.net.... I want my freinds to use Telnet How to configure it plz Help files PDF ...my freinds has ppp and LAN .......configuration for telnet also my Host is... (4 Replies)
Discussion started by: atiato
4 Replies
Login or Register to Ask a Question