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:
1809
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:
Ex mode command in unix
Execute the command which display login name, the name of your terminal and date and time of since user logged in
Tee examples in unix
write a script to delete zero sized files from a given directory (and all its subdirectories)
Collect system diagnostic message to from error log - dmesg
Process in unix
Program to perform all SUBTRACTION on two operands : (decimal, binary, octal,hexadecimal)
Set or display name of current host system - hostname
Shell script to perform database operations for student data like view, add and delete records
Create a file with 10 lines. Display lines from 5 to 8
Shell script to print first 5 odd numbers
Redirection in unix
Suppose four filenames are supplied then the first file should get copied into second file, the third file should get copied into four
How to change permission of file as 644?
Write a shell program to search for a given number from the list of numbers provided using binary search method
Write a shell program to count number of words, characters,white spaces and special symbols in a givin text
Listing file and directories command - ls
Search a file for a pattern - grep
Write a shell scripts that finds total no. of users and finds out how many of them are currently logged in.
Write a menu driven shell script for Copy a file, Remove a file, Move a file
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