nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

how to correct command to change directory?

This is a discussion on how to correct command to change directory? within the Ubuntu / Debian forums, part of the Linux Distribution category; i use name tonjaa in user setting home directory = /home/tonjaa when i open terminal like this = tonjaa@tonjaa-desktop:~$ i ...


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-05-2009, 11:54 PM
Member
User
 
Join Date: May 2009
Location: Thailand
OS: ubuntu
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tonjaa is on a distinguished road
Question how to correct command to change directory?

i use name tonjaa in user setting home directory = /home/tonjaa
when i open terminal like this =tonjaa@tonjaa-desktop:~$

i have folder name ton009 on desktop have file name duck09.jpg
if i want to change directory to folder name ton009 for copy file duck09.jpg
to documents what's correct command to do ? from

tonjaa@tonjaa-desktop:~$
?

please tell me by step .

Last edited by nixcraft; 28-05-2009 at 04:08 AM.
Reply With Quote
  #2 (permalink)  
Old 28-05-2009, 12:06 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Try following to get list of files and dir from a shell prompt
Code:
ls 
ls -l
To change directory use cd command:
Code:
cd directory name
To go to your home directory
Code:
 cd ~
To go to your Desktop directory:
Code:
cd ~/Desktop
ls -l
To go to ton009:
Code:
cd ~/Desktop/ton009
ls -l
To copy file duck09.jpg to /tmp
Code:
cp duck09.jpg /tmp
cd /tmp
ls -l
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help

Last edited by nixcraft; 28-05-2009 at 04:08 AM.
Reply With Quote
  #3 (permalink)  
Old 28-05-2009, 02:47 AM
Member
User
 
Join Date: May 2009
Location: Thailand
OS: ubuntu
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tonjaa is on a distinguished road
Lightbulb thank u.

thank you very much for answer it make me understand .
for human being
Reply With Quote
Reply

Tags
cd command


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
chsh command - change user shell from a script gsb1bee Shell scripting 1 30-04-2009 10:33 AM
Installing the correct version of RHEL 5 Advanced Platform. Zepiroth CentOS / RHEL / Fedora 1 16-03-2009 10:37 PM
I wonder how to have correct sound out of the speakers. titi13 Linux hardware 2 01-06-2008 07:34 PM
Shell script to change folder directory owner after restore marinm Shell scripting 5 23-01-2007 12:53 PM
Linux how do I change IP address with ifconfig command chiku Linux software 1 07-12-2006 08:47 PM


All times are GMT +5.5. The time now is 06:53 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38