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:
2365
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 concatinate two strings and find the length of the resultant string
Script to find the value of one number raised to the power of another
Write a shell program to concatinate two strings and find the length of the resultent string
Write a shell program to search for a given number from the list of numbers provided using binary search method
How would u get online help of cat command?
Write a shell script to ask your name, program name and enrolement number and print it on the screen.
Shell script for following conditions. Take two files as input and run spell command on it, Collect a list of potential spelling errors, modify file
Which command display version of the UNIX?
Display file in column format
Add a new user login to the system - useradd
Concatenate, copy, print files - cat
Calculate 9/5
Program to calculate the sum of its digits
Absolute movement in unix
How to change permission of file as 644?
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
Shell Script to check file is ordinary or not
Shell Script combine file in one file horizontally and vertically
Count no.of lines in file abc?
Write a script to find the value of one number raised to the power of another
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