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:
2484
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 program to add, subtract and multiply the 2 given numbers passed as command line arguments
Write a Script to Broadcast a message to a specified user when the user loged on any terminal
Combine two files to a single file
Write a shell script to find the sum, the average and the product of the four integers entered
Program to count length of user input string
Prepare a menu driven calculator
Write a shell program to convert all the contents into the uppercase in a particular file
Shell script to take LOGNAME or the UID an an input and find how many terminals has this user logged in
Write a shell script, which reports names and sizes of all files in a directory whose size is exceeding 1000 bytes
Shell Script combine file in one file horizontally and vertically
Write a shell script to sort the given numbers in descending order using Bubble sort
Write a shell script to find the sum, the average and the product of the four integers entered
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
System activity reporter - sar
Find the lines containing a number in a file
Wild cards and examples in unix
How delete directory with files?
Print the calendar of December 2006
Write a shell program to concatinate two strings and find the length of the resultent string
Write a shell script to ask your name, program name and enrolement number and print it on the screen.
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