changing directory quickly without cd ..


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers changing directory quickly without cd ..
# 1  
Old 11-13-2010
changing directory quickly without cd ..

Hi,

I am in /home/development/project/abc directory. Now I want to remove one file which is kept in /trial/dev/<file> directory.
I would like to do it in one command.

I tried changing directory in one command like:
pwd
/home/development/project/abc

cd ~/trial/dev/
bash: no command found

What command should I use to achieve this?
Any help would be much appreciated!!
# 2  
Old 11-13-2010
~ is basically your user's home directory. If the path is /trial/dev mention it as

Code:
 
cd /trial/dev/

This User Gave Thanks to 116@434 For This Post:
# 3  
Old 11-13-2010
Quote:
rm -f /trial/dev/<file>
This User Gave Thanks to anurag.singh For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SSH : Restarting too quickly, changing state to maintenance

Hi, I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0 $svcadm restart svc:/network/ssh:default $echo $? 0 $ However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in... (3 Replies)
Discussion started by: maverick_here
3 Replies

2. Solaris

Changing file/directory owner

Hi , I want to change owner of files or folder from 23186 to dsadm, Present ------- -rw-r--r-- 1 23186 gdstage 10240 Oct 31 2007 BLTRS drwxrwxrwx 3 23186 gdstage 512 Sep 1 2010 sql Required as ----------- -rw-r--r-- 1 dsadm gdstage 10240 Oct 31 2007 BLTRS drwxrwxrwx 3 dsadm gdstage... (6 Replies)
Discussion started by: sridhardwh
6 Replies

3. UNIX for Dummies Questions & Answers

changing directory permissions

Hi, Im getting this annoying problem on file permission when I copy a folder to a mounted external directory. the files inside the copied folders become all executable. I tried to search for ways how to undo the permission over the web but to no avail. tried this one but it doesnt change a... (2 Replies)
Discussion started by: ida1215
2 Replies

4. UNIX for Dummies Questions & Answers

Changing directory with a script

I thought this was as easy as a piece of cake. But it has had me spinning. Here is how my script looks like: When the script finishes and I pwd, I am back to square one. Any help? Thanks in advance. HP-UX hostname B.11.23 U ia64 3308722091 unlimited-user license (5 Replies)
Discussion started by: ron_it_guy
5 Replies

5. Shell Programming and Scripting

Changing home directory

Hello All: I have an LDAP server that is used for authentication. Now the home directory id set to : /export/home/user1 . But I am logging in to different machines Solaris, Linux. The problem is I want the home directory to change depending on the os version (e.g. /export/home/user1/linux). Can... (1 Reply)
Discussion started by: disturbe_d
1 Replies

6. UNIX for Dummies Questions & Answers

need solution for this quickly. please quickly.

Write a nawk script that will produce the following report: ***FIRST QUARTERLY REPORT*** ***CAMPAIGN 2004 CONTRIBUTIONS*** ------------------------------------------------------------------------- NAME PHONE Jan | ... (5 Replies)
Discussion started by: p.palakj.shah
5 Replies

7. Windows & DOS: Issues & Discussions

Changing Directory Using SFU

Just installed SFU in my PC running under Windows XP Pro. Could someone tell us how to change directory and to its subdirectories either by Korn Shell or C Shell? I tried, cd f:\ or chdir f:\ but it didn't work. (1 Reply)
Discussion started by: ilak1008
1 Replies

8. UNIX for Dummies Questions & Answers

Changing directory through script

Hi Friends ! I want to change my current directory through a script. I am running the script say, from /home/proj directory. The script is like this : #!/usr/bin/sh cd module/pack/data once i run the script, i am still in /home/proj directory only. My problem is, i dont want to type... (5 Replies)
Discussion started by: mrgubbala
5 Replies

9. Programming

changing directory on server

hi, I'm doing to some simple socket programming. I have a client that connects to the server and request stuff. For example, if the client type in "ls", that command will be sent to the server and the server will send back the ls information the client requested. Similarly, if the client type... (1 Reply)
Discussion started by: bb00y
1 Replies

10. UNIX for Advanced & Expert Users

Changing directory on Unix

Hi, Can you please help ? I work on SCO Unix Open server Rel. 5. User root on Unix can change/view/modify any files belonging to any user on a file system. Is there any way where I can prevent non-root users to change thier directories to other non-root users area. for eg. There are 2 users... (3 Replies)
Discussion started by: taher_n
3 Replies
Login or Register to Ask a Question