![]() |
2008-04-14
, 14:29
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#1
|
![]() |
2008-04-14
, 15:00
|
Posts: 333 |
Thanked: 32 times |
Joined on Jul 2007
|
#3
|
root@Gir:~# touch --help
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.
#touch ./newfile
#touch ./newscript.sh #vi ./newscript.sh
The Following 2 Users Say Thank You to BOFH For This Useful Post: | ||
![]() |
2008-04-14
, 15:10
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#4
|
![]() |
2008-04-14
, 15:14
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
2008-04-16
, 18:44
|
Posts: 11 |
Thanked: 8 times |
Joined on Feb 2008
@ Youngstown, OH
|
#6
|
The Following User Says Thank You to gt24 For This Useful Post: | ||
![]() |
2008-04-16
, 19:07
|
|
Posts: 566 |
Thanked: 145 times |
Joined on Feb 2008
@ Tallahassee, FL
|
#7
|
you run the echo commands above properly the first time then an editor isn't needed... just make sure to run the right commands.
The Following User Says Thank You to briand For This Useful Post: | ||
![]() |
2008-04-16
, 19:25
|
|
Posts: 48 |
Thanked: 40 times |
Joined on Apr 2008
@ Spain
|
#8
|
Problem: I'm trying to teach myself Python. The Python tutorial I'm using at byteofpyton.org says, in order to execute a python program that I write from any directory within the CLI, I need to edit the "PATH environment variable". That is, if I want to run my Python programs without first cd'ing to the dir in which the programs exist, I need to set up the "PATH environment variable".
/home/user/myscripts/mytest.py
./mytest.py
-sh: mytest.py: not found
echo $PATH
export PATH=/home/user/myscripts
export PATH=$PATH:/home/user/myscripts
export PATH=/usr/bin:/bin:/home/user/myscripts
cat >> $HOME/.profile PATH=$PATH:/home/user/myscripts export PATH Ctrl-D
The Following 9 Users Say Thank You to jldiaz For This Useful Post: | ||
![]() |
2008-04-18
, 14:10
|
|
Posts: 100 |
Thanked: 13 times |
Joined on Mar 2008
|
#9
|
no offense, but this is quite possibly the worst advice you can give to someone who admits to being unfamiliar with the command line interface.
it may, for instance, be possible to avoid automated detection at a toll booth by passing through it at a very high speed -- but you wouldn't expect someone unfamiliar with driving to accomplish this task without a high liklihood of catastrophic failure...
![]() |
2008-04-18
, 15:08
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#10
|
The Following User Says Thank You to TA-t3 For This Useful Post: | ||