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:
1791
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:
Execute the command which display login name, the name of your terminal and date and time of since user logged in
Change file owner of group - chown
Process in unix
Terminate a process - kill
Write a script to enhance the calander to accept any month as mm or mmm or only year as yyyy or both month and year
Display your login name
Redirection in unix
Write a shell program to count number of words, characters,white spaces and special symbols in a givin text
Write a shells scripts which will receives a list of filenames,the first of whch would be wordfile
Program to calculate the sum of its digits
Print message a shown in description
Shell script that prints names of all sub-directories present in the current directory
Write a shell program to convert all the contents into the uppercase in a particular file
Write a shell program to count the characters, count the lines and the words in a particular file
Script to find the value of one number raised to the power of another
Program to perform all ADDITION on two operands : (decimal, binary, octal,hexadecimal)
Shell script to perform database operations for student data like view, add and delete records
Write a shell scripts which works similar to the Unix commands Head Tail
Sort file abc.txt and save this sorted file in xyz.txt
Write a shell program to find the gcd for the 2 given numbers
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