Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Changing current directory - cd
Posted By:
Adelfried Fischer
Category:
Unix / Linux / Ubuntu
Views:
1869
This article explains about cd command with an example in unix.
cd command is used for changing working directories in unix.
• Can use with absolute path and relative paths
• Using without any argument will redirect to User’s HOME directory
Syntax of cd Command
cd
Example of cd Command
cd Desktop
Share:
Previous Post:
Show current directory - pwd
Next Post:
Removing files and directories - rm
Didn't find what you were looking for? Find more on
Changing current directory - cd
Or get
search suggestion and latest updates
.
Adelfried Fischer
author of Changing current directory - cd is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Script to make File and Directory Management Operations menu based : Display Current directory, List Directory, Make Directory, Change Directory etc
Shell script to check whether inputted directory is in current directory or not
Shell script that prints names of all sub-directories present in the current directory
Shell script that prints names of all sub-directories present in the current directory
Perform directory operations like display current , list, Make, Change directory and file operations like Copy, Rename, Delete, Edit based on menu
Program to find the current working directory
Show current directory - pwd
List all hidden files in current directory
Display your current working directory
Shell script to check dir directory if it exists then change the path, if not then create dir with that name and also check for file name not exists
Write a shell script for renaming each files in the directory such that it will have the current shell PID as an extension
Write a shell script, which displays a list of all files in the current directory to which you have read, write and execute permissions
menu driven shell program which have the options change the term, change the prompt and user list of unix system.
PROGRAM TO CHANGE THE SIZE OF CURSOR
Shell script to change extension of an existing file
Program to inter change to number in each other
Write a query to change the format of date using to_char function
Write a query to change the case of strings using lower and upper function
How to change the Page Title in ASP.Net 1.1 and C#
How to change the Page Title in ASP.Net 1.1 and VB.Net
Other Interesting Articles in Unix / Linux / Ubuntu:
Write a shell script to sort the given numbers in descending order using Bubble sort
Script to count and report the number of entries present in each subdirectory mentioned in the path, which is supplied as a command-line argument
Write a shell program to concatenate the contents of 2 files
Shell script which whenever gets executed displays the message “Good Morning/Good afternoon /Good Evening “depending on the time it get executed"
Change file mode access permission - chmod
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
How would you display the calendar of 2007?
Write a shell script, which reports names and sizes of all files in a directory whose size is exceeding 1000 bytes
Write a shell script to find the smallest of three numbers
Convert first1.txt file to hidden file
Compress and expand data - compress / uncompress
Change a permission of a file
Shell Script to check file is ordinary or not
Program to calculate the area and perimeter of the rectangle
Prepare the marksheet of the student
Write a script to find the value of one number raised to the power of another
How to change permission of file as 644?
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Wild cards and examples in unix
How delete directory with files?
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint