Change Directory In Linux

For example, both of the following commands will change you to the "florida" directory. mkdir 'make directory' command creates a directory or subdirectory within the current directory. To exit chroot, simpy use the below command: exit Step 7. The following example is Unix/Linux specific, but similar example could have been written for Windows as well. The cd command is THE most important command there is in linux i think. You can configure who can read, write or execute the file. I have created a test script that looks like the following: #!/bin/bash cd /home/artemb When I execute the script from the Bash shell the current directory doesn't change. That is why every. How to use UNIX File Transfer Protocol (FTP) By Nicholas Seet. Location of the directory depends on your system and configuration. bash_logout as well as the skeleton. Processing Multiple Items with the For Command. For admins on a headless server, ‘cd‘ is the only way to navigate to a directory to check log, execute a program/application/script and for every other task. chdir() changes the current working directory of the calling process to the directory specified in path. Displays size of files and directories contained in the given directory or the size of a file if its just a file. This page offers some information about what, exactly, this directory is, what's kept there, and how you can use it. Related: pushd - Change Directory. Linux files are owned by one user owner and one group owner but no more. Change the home directory of a Linux user with a simple usermod command. Each person who uses the central UNIX servers is associated with a list containing at least one group, and each file or directory on the central UNIX servers is associated with one group. Linux Commands. RELATED: Beginner Geek: How to Start Using the Linux Terminal. FTP is useful as it allows you to store or retrieve files from any computer in the world. Finding size of files and directories in GUI mode is easy! All we have to do is just right click on the file or directory, and choose the properties option from the context menu. In Linux terminology directory or folder both are same, in this article we will demonstrate 8 useful mkdir command practical examples. Linux Man Pages from die. Displays size of files and directories contained in the given directory or the size of a file if its just a file. ASMCMD> mkdir -- create (make)directory. We can change the current working directory using the chdir() method. From Wikipedia: cd, sometimes also available as chdir (change directory), is a command line command to change the current working directory in operating systems such as Unix, DOS, OS/2, AmigaOS (where if a bare path is given, cd is implied), Windows, and Linux. Examples: To navigate into the root directory, use "cd /" To navigate to your home directory, use "cd" or "cd ~" To navigate up one directory level, use "cd. bash_logout (/etc/skel/. Debian is a free operating system (OS) for your computer. It's very tricky solution. Just like with ls, if you type a “cd –help” you’ll get help for the cd command. How do I change directory in Linux using the cd command? How can I change a directory or folder in Linux? Introduction - You need to use the cd command to move from your present directory to another directory. Each user account has read and write access to its own files and read access to some system files. In this chapter, we will discuss in detail about directory management in Unix. Note that "r" is for read, "w" is for write, and "x" is for execute. cd (“change directory”) is a command that changes your file directory. change directory in python I've been requested to put a python script in cron. For example, if we want to change the permission of all the directories and files under /opt/hddocs then follow the below commands,. I have created a test script that looks like the following: #!/bin/bash cd /home/artemb When I execute the script from the Bash shell the current directory doesn't change. Figure Out Who Owns the File, Then Use Either chown or chgrp Display ownership and group information using the following command: [crayon-5d5984fcbebfe970452989/] This file is owned by the […]. To watch the contents of a directory change, you could use administering Linux machines. The specified directory must be empty before it can be removed. $ ls -al animals -rw-r--r-- 1 hermie users 1758 Mar 17 23:17. In this tutorial, we will show you how to use the chown command through simple examples. FileIOPermission for access to path information for the current directory. This article gives an overview of files, directories and permissions on Linux, with specific reference to the information needed for the RHCSA EX200 and RHCE EX300 certification exams. To change the default directory used by INFILE "ls -l", I first need to change the default directory via the X command, for example: X "cd /tmp"; But in order to use the X command in SAS, you will have to make sure that your invocation of SAS is configured to allow the X command. Unix Permissions Calculator. Below are some basic examples of how this command can be used to change directories. It is lightweight and easy to use and doesn't need installing (can run from a flash disk). cd dir Change directory to dir. When you are working from the command line in Linux, you will often need to change the current working directory. Or you can browse Linux man pages by name; choose the first letter of the name of the Linux command, function, or file you are interested in. so", and append "remember=5" to that line. So, we can add a cd command to change to a specific directory as soon as the Terminal window opens. For instance, you could just go into /etc/passwd directly and add a user there, but unless you are familiar with file editors and putting a lock on, you should work with the commands to avoid corruption. I have created a test script that looks like the following: #!/bin/bash cd /home/artemb When I execute the script from the Bash shell the current directory doesn't change. Home » Articles » Linux » Here. December 21, 2010 Introduction. d — a directory -(dash) — a regular file (rather than directory or link) l — a symbolic link to another program or file elsewhere on the system Others are possible, but are beyond the scope of this manual. How to Rename Files in Linux By MTE Staff - Posted on Aug 23, 2018 Oct 23, 2018 in Linux Renaming files is not a particularly advanced operation; as long as it's done on a small number of files, it usually doesn't require special tools. Read more details about this in Commands for Beginning Admins The rmdir command is used mostly to remove empty directories. It is a builtin command, which means that it is executed directly by your shell, instead of launching an external program. In this tutorial we will look different uses cases for chgrp and examples. File and Stream I/O. In this lesson, I will introduce your first three commands: pwd (print working directory), cd (change directory), and ls (list files and directories). Learn to configure Apache virtual hosts on Linux. In addition, CentOS can manage file and folder permissions types by group. In addition, CentOS can manage file and folder permissions types by group. Ubuntu, like other Linux distributions, restricts access to files and system settings by default. Examples: To navigate into the root directory, use "cd /" To navigate to your home directory, use "cd" or "cd ~" To navigate up one directory level, use "cd. The name of the installation directory will likely be the language abbreviation for the install set, e. I typically use PuTTY, a free telnet and SSH Client for Windows and Unix platforms. Understanding the most basic Linux commands will allow you to successfully navigate directories, manipulate files, change permissions, display information such as disk space, and more. What is the relative path? Relative path is defined as path related to the present working directory(pwd). 1 Copying Files cp (copy) cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2. In this article, I am going to show you how to change the MySQL/MariaDB database’s default data directory on Ubuntu. Before changing directories, you need to know what directories are available in the current directory. cd foldername. /florida [email protected] florida/$ [email protected] vacation pictures/$ cd florida [email protected] florida/$ To cd to a parent directory, you always specify ". It is commonly assumed, to get into this level of usage, the command line is a must. The basic mechanism involves the application registering for notification on a directory using a fcntl(2) call and the notifications. In Unix and Linux, type "cd \" to change your command line to the root directory for the boot drive. Even after the Linux system is booted to a target, you can change it to another target/runlevel. Unix-like operating systems, such as Linux, running on shared high-performance computers use settings called permissions to determine who can access and modify the files and directories stored in their file systems. mv file_name ~/Desktop it will move the file to the desktop. To create a subdirectory in the home directory of your Unix account, use the mkdir command. How To Change Directory In Ubuntu Linux Via Command Line Or Terminal Step By Step Tutorial. To prevent internal anarchy, Linux gives different levels of permission for interacting with those files and directories. Hi, For Linux:*How to change the mysql database location* 1. They have read, write, and execute permissions. It starts the unit specified on the command line and its dependencies and stop all others. With --reference, change the group of each FILE to that of RFILE. Before explaining why you cannot permanently change directory using Perl, let's see what can you do. man chmod. An operating system is the set of basic programs and utilities that make your computer run. The process to configure SQL Server running on Linux has changed from SQL Server running Windows. This is your individual space on the UNIX system for your files. please post an article on that too. To change directory use cd followed by either the absolute or relative directory. If you don't want your data directory to reside inside your owncloud directory, there's an easy way to change it. This means you can now work on Linux-based projects inside Windows with speed. Enable root privileges as described HERE. As per the permission given in above output only owner of the directory who is root can have all permission that is read, write and execute. Currently in real time the user changes to the directory that has the script and launches the script which works on data in that directory. The part of the hard disk where you are authorised to save data is calle your home directory. The owner of a file or directory can change the file or directory's permissions. In Linux, we use the same diff command to compare directories as well as files. >> How to find - Size of a directory & Free disk space This article explains 2 simple commands that most people want to know when they start using Linux. Type cd followed by the name of a directory to access that directory. – Development of GNU was initiated by Richard Stallman in 1983 and was the original focus of the Free Software Foundation (FSF) • Linux. To create a directory in UNIX or Linux using the mkdir command pass the name of directory to the mkdir command. Below are some basic examples of how this command can be used to change directories. The generated change list contains notifications for creation, deletion, update or renaming of the file/directory content. eg, If am the root , then my Home directory will be / if say am | The UNIX and Linux Forums. All other directories are 'children' of this directory. directories and. bashrc" located in your home directory, as long as you are using the Bash, of course, not the Shell. tempdir changes the directury returned by tempdir(). mkdir - creates a new directory on the remote host. The linux operating system used for the PARTICLE DAQ system can be used either in a terminal mode where you type commands or in a Windows Explorer style graphical user interface (GUI). CHANGEPERMS (a UNIXPRIV class profile), can use the chmod command to change the permission bits of any file. Pretty simple , 1. txt , and three subdirectories. The chgrp (from change group) command may be used by unprivileged users on Unix-like systems to change the group associated with a file system object (such as a file, directory, or link) to one of which they are a member. How do I change directory in Linux using the cd command? How can I change a directory or folder in Linux? Introduction – You need to use the cd command to move from your present directory to another directory. Open your favorite Terminal app. Look for a line that contains both "password" and "pam_unix. This section describes how to change the ownership and group ownership of a file. Linux and Unix mkdir command tutorial with examples Tutorial on using mkdir, a UNIX and Linux command for creating directories. The security. For finding/printing the current working directory in Linux, we have pwd command to use. The asmcmd command line interface is very similar to standard UNIX/Linux commands, but it only manages files at the OS level. d — a directory -(dash) — a regular file (rather than directory or link) l — a symbolic link to another program or file elsewhere on the system Others are possible, but are beyond the scope of this manual. ~# cd /etc/ssh/ ~# dpkg-reconfigure openssh-server. This section gives insight into the most important commands. /xampp-linux-*-installer. You can change Docker’s storage base directory (where container and images go) using the -g option when starting the Docker daemon. In your terminal window, enter the following commands to change directory into the folder containing the SSH keys and reconfigure the server. selinux attribute). Above command will navigate two steps back from current directory. The /dev directory contains the special device files for all the devices. The Linux find command is a very useful and handy command to search for files from the command line. How To Change Ownership of Files and Directories in Unix February 9, 2009 by Gleb Reys 8 Comments I've just been asked a question about changing the ownership of files from one Unix user to another, and thought it probably makes sense to have a quick post on it. Change the home directory of a Linux user with a simple usermod command. Accessing the shared folder from Linux There are two very easy ways to access shared folders in Linux. Learn More About Adding Users and Groups to Linux When working in Linux, there are a number of options you have for creating users and groups. This is useful for confining applications to a single directory or running programs built for a different CPU architecture, but it has limitations due to the fact that all files are owned by the user on the host system. This post shows how to mount VBox shared folder on Ubuntu guest. The cd command is used to change the current directory (i. There is a command that prints the current working directory: pwd. That is why it does not accept full path for the target file name. Master the command line: Copying and moving files on the Mac Wish you could make a bunch of folders all at once or instantly move every file of a certain type into a new folder? The command line. Equivalent bash command (Linux): cd - Change. NAME chown - change file owner and group SYNOPSIS chown [OPTION]. In Linux, we use the same diff command to compare directories as well as files. So, we can add a cd command to change to a specific directory as soon as the Terminal window opens. In this tutorial, we will discuss the basics of this command. That is why every. UNIX Tutorial One 1. When you open a terminal you will be in your home directory. Mostly MySQL uses /var/lib/mysql directory as default data directory for Linux based systems. How do I change the Torrent folder? To be able to change the Torrent folder in Vuze. Type cd followed by the name of a directory to access that directory. Consequently, if you have a large number of files in a directory and are frequently opening the last file in the directory, your CPU is doing a lot of comparisons. A file has three types of permissions (read, write and execute) and three sets of users (user (owner), group and other (world)) with specific permissions. chmod changes the access permissions, or modes, of the specified file or directory. There's an even more direct way to remove a directory from the command line. mv old_folder_name new_folder_name mv also can move several files into a destination folder, or rename a single file. In Linux 'cd' (Change Directory) command is one of the most important and most widely used command for newbies as well as system administrators. The cd command is used to change the current directory (i. Change Command Prompt Default Directory This is a simple registry hack to change the default directory you see when opening command prompt. The /dev/MAKEDEV. There is another way to specify a location: go to the Finder, navigate to the file or folder you want and drag it onto the Terminal window, with the cursor at the point where you would have typed the path. To make it a true tmp directory (as in the files go away when the session is ended, you'll want to edit the user's. Python provides a submodule os. 3) Click on the 'Save' button below. Hello, I am using the Fileserver, TurnKey Linux 12. The new path that we want to change to must be supplied as a string to this method. matlab -nodisplay -r script. By default, the owner cannot use the chown command to change the owner of a file or directory. Also remember that, if your directory / file name contains spaces, then use the forwardslash. If you see all these paths started from / directory which is a root directory for every Linux/Unix machines. Operating system: Windows 7 or newer, 64-bit macOS 10. In Linux/UNIX, the concept of user (owner) and group is very fundamental, as everybody wants things he uses to be kept secure and properly organized. The shell is a program that accepts and interprets commands; there are several shells such as bash, sh, ksh, zsh, fish and many other lesser known shells available on Linux. 2) Change directory. If you're in the /etc/apt directory, your prompt will look like [email protected]/etc/apt$ The reason you see a ~ is because ~ is a shortcut to your home directory. Linux Directory Notification ===== Stephen Rothwell The intention of directory notification is to allow user applications to be notified when a directory, or any of the files in it, are changed. This is the "temporary" directory permission and should also be avoided unless you really know what you're doing. Directories Directories, like folders on a Macintosh, are used to group files together in a hierarchical structure. please post an article on that too. However, you can enable the owner to use the chown command by adding the following line to the system's /etc/system file and rebooting the system. Normally all the data you want. Estimated reading time: 2 minutes Table of contents. This section gives insight into the most important commands. So, we can add a cd command to change to a specific directory as soon as the Terminal window opens. Linux and Unix. How To Change Directory In Ubuntu Linux Via Command Line Or Terminal Step By Step Tutorial. Setting up a shared VBox folder allows you to easily share files between host OS and guest OS. HDFS super-user access is not required to change the group, but the caller must be the owner of the file and a member of the specified group. They are finding the size of a directory and finding the amount of free disk space that exists on your machine. Linux Directory Notification ===== Stephen Rothwell The intention of directory notification is to allow user applications to be notified when a directory, or any of the files in it, are changed. The following table is a list of linux commands found on a Redhat 9. If this doesn’t work, go to the BIOS boot menu and change the boot sequence. cd's syntax is cd [option] [directory] The items in square brackets are optional. Directories are also treated as files. C Shell (csh): Put this in your. Figure Out Who Owns the File, Then Use Either chown or chgrp Display ownership and group information using the following command: [crayon-5d5984fcbebfe970452989/] This file is owned by the […]. mv - renames or moves a file on the remote host. For example, if we want to change the permission of all the directories and files under /opt/hddocs then follow the below commands,. As the command suggests, it enables the user to change / jump to a directory. It is quite useful to find the directories that contains lot of sub-directories in Unix-like systems. Users can simply modify file permissions using the chmod (change mode) command. A directory contained within another is called the child of the other. The /dev/MAKEDEV. The second word on the command line must be a path. Each file and directory in a file system is assigned "owner" and "group" attributes. $ cd ~ (tilde) stores the path to your home directory, this command has same effect as the previous one. Unpack the tarball and install Java tar zxvf jre-8u73-linux-x64. Linux and Unix. A) In the elevated command prompt, type the command you want below, press Enter, and go to step 5 below. This brief tutorial explains how to find the size of a directory in Unix-like operating systems. The name of the installation directory will likely be the language abbreviation for the install set, e. By default, the MySQL/MariaDB SQL database servers put their data on the root filesystem. Navigating directories. Using chown you can change the user and group ownership of a file or directory. Use cd to change directories. To change the WORK directory for an individual SAS Enterprise Guide user, create a file called sasv9. In the Bourne Again, C, Korn, TC, and Z shells, the tilde ( ~ ) is used as a shortcut for specifying your home directory. For example, if you want to create a directory called test, open a terminal window, navigate to the right folder where you want the folder, and then enter this: mkdir test The cd ~ command is used to change the working directory so that when you enter the mkdir command, the folder is created exactly where you want it to be. A) In the elevated command prompt, type the command you want below, press Enter, and go to step 5 below. Directories Directories, like folders on a Macintosh, are used to group files together in a hierarchical structure. Once Joe has copied the files, Fred will probably want to change the mode of his home directory so that it is no longer accessible to the world at large. Welcome to the Linux Mint forums! For help, knowledge, and fellowship. For example, to change Linux to “multi-user” target: # systemctl isolate multi-user. Hi, For Linux:*How to change the mysql database location* 1. Mostly MySQL uses /var/lib/mysql directory as default data directory for Linux based systems. It is similar to the CD and CHDIR commands in MS-DOS. Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved. displays the file names in the compressed archive foo. If you want to modify those permissions, the chmod (change mode) command is what you need. It’s easy to accidentally change directories to something you weren’t intending to (say, accidentally hitting cd and returning home, thus losing your place in a complicated directory structure seep in the file system somewhere), but thankfully there’s a command that will immediately take you back to the previous directory, regardless of. This applies to all Mozilla applications, including Firefox, Thunderbird, Mozilla Suite and SeaMonkey. The remainder of this tutorial presents basic commands to use within the UNIX shell. So in such case you need to change the permission of the directory to read using below chmod command:. Hello Friends, I'm using Kali Linux from 3-4 Months I'm thinking to change the Appearance of my Desktop Because I'm bored using the same interface now it's time to update to new Theme/Template, I have been changing Wallpapers only but I'm thinking to change it completely to have a new experience and interface. The security. To see the full Linux manual of chmod command in Linux,use the man command as below. For example, if you want to create a text file that contains a list of the contents in the Windows folder on drive C, type the following commands at a command prompt, and press ENTER after you type each command:. man chmod. On my small home system, it says there are 2595 executables on my PATH. How to Change Directory Permissions in Linux for the Group Owners and Others The command for changing directory permissions for group owners is similar, but. To see a list of bash shell commands, go to the shell commands page. To make it a true tmp directory (as in the files go away when the session is ended, you'll want to edit the user's. The directory at the end of the active path is called the current directory; it is the directory in which the active application started, unless it has been explicitly changed. Background. To change file access permissions you use chmod command. chmod changes the access permissions, or modes, of the specified file or directory. For example, to create a subdirectory called work, at the Unix prompt from within your home directory, enter: mkdir work. Open a terminal window and navigate to the location of your directory. Mostly MySQL uses /var/lib/mysql directory as default data directory for Linux based systems. By default, the MySQL/MariaDB SQL database servers put their data on the root filesystem. mv old_folder_name new_folder_name mv also can move several files into a destination folder, or rename a single file. Every file in Linux is managed by a specific user and a specific group. Note:-This structure could vary from distro to distro and this is a very generic linux directory structure. local is a script written by the system administrator that creates local-only device files or links (i. This applies permissions from the old directory to the new one (~Line 252). Now i want to go back to my previous directory /home/matt/documents. Although your home directory is /export/home/user1, the cd command returns you to the/home/user1 because home directories are mounted on the /home directory by the automounter. If you see all these paths started from / directory which is a root directory for every Linux/Unix machines. This will create an installation directory. It is quite useful to find the directories that contains lot of sub-directories in Unix-like systems. For instance, to force a specific date and time upon all files in a directory, type: touch * You can also force a specific date/time stamp using the -t option like this: touch -t200103041200. Similar to du command on Linux. alias setprompt 'set prompt="${cwd}% "' setprompt # to set the initial prompt. So, we can add a cd command to change to a specific directory as soon as the Terminal window opens. cd - change directory Linux tips. Posted on March 9, 2011 March 10, 2011 Author Dehumanizer Categories Computers, Linux, Unix Tags cd, Unix shell 23 thoughts on “Unix/Linux trick: ‘cd’ back to the previous directory” Alex says:. It's very tricky solution. To move a file or directory type this in Terminal. That is why every. Basic Linux Commands. You basically 'go' to another directory, and you will see the files in that directory when you do 'ls'. For example, both of the following commands will change you to the "florida" directory. You can do that using “~” (tild) character. Usage : hdfs dfs -du Example: $ hdfs dfs -du -h /fibrevillage/ 4. Using the Command Line to delete a directory in Linux. Run the installer. 1 Copying Files cp (copy) cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2. The installation directory is the directory where a Mozilla application stores its program files. Review the following Linux article for further details: Understanding Linux File Permissions. Only file’s owner or the superuser can change a file’s permissions. The application created here can be used to monitor any file or directory on your system. It uses iconv for change of encoding. alias setprompt 'set prompt="${cwd}% "' setprompt # to set the initial prompt. Usage Note 31615: How to change the WORK directory on a UNIX server when using SAS® Enterprise Guide. Follow the steps below: Windows / Linux: 1) Go to (Tools > Options). File ownership and groups for files are fundamental to the Linux operating system. If you are logged into your webserver via SSH, running the following command changes your directory to your user’s directory:. Each file has a primary user that owns it and a group assigned to it. The directory at the end of the active path is called the current directory; it is the directory in which the active application started, unless it has been explicitly changed. This is an admin command, root user only can change the owner of a file or directory. It starts the unit specified on the command line and its dependencies and stop all others. Quest solutions for AD management, security, auditing and migration elevate performance. Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved. Folder Color is a simple extension to customize your Ubuntu / Linux Mint folder icon, create colorful and unique folder icons for your computer to classify and manage your folders highly efficient. Just like with ls, if you type a “cd –help” you’ll get help for the cd command. cfg in the user's home directory on the UNIX server. Directories and Files Basics on Directories and files. lcs - changes local directory. To exit chroot, simpy use the below command: exit Step 7. , a 501(c)3 nonprofit corporation, with support from the following sponsors. The user above has changed from one directory to another, then used the cd - command to return to their previous directory. cd foldername. It tells Linux also that the file system is iso9660, that it should be mounted read only and that it should never be mounted at startup (when there might not be a CD in the drive). Above command will navigate two steps back from current directory. In turn they are linked to a drive name in either the /mnt or /media directories. To do this, use the ls command. Linux Files, Directories and Permissions. Due to space constraints on the server, I would like to change the default location of mysql databases (currently under /var/lib/mysql) to another directory, for example, to /srv/storage/mysqldb. d — a directory -(dash) — a regular file (rather than directory or link) l — a symbolic link to another program or file elsewhere on the system Others are possible, but are beyond the scope of this manual. chdir() changes the current working directory of the calling process to the directory specified in path. How To Change Directory In Ubuntu Linux Via Command Line Or Terminal Step By Step Tutorial. Missing temporary files can prevent programs from communicating. Change File and Directory Permissions in Linux - Terminal Commands #1. alias Create an alias • apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software packages (Debian/Ubuntu) aspell Spell Checker awk Find and Replace text, database sort/validate/index b basename Strip directory and suffix from filenames bash GNU. What is the relative path? Relative path is defined as path related to the present working directory(pwd). matlab -nodisplay -r script. Linux stores data and programs in files. For example, if we want to change the permission of all the directories and files under /opt/hddocs then follow the below commands,. mkdir mydirectory ls mydirectory How to create multiple directories. Chmod Linux manual. Hello Guys, In this post we are going to disscuss about the file /etc/shadow. You might wonder what the above user/group values are. 1: Modifying Owner User using chown: The synopsis is to use the command followed by #1. To change directories while in a *nix environment, use the cd command. This is the "temporary" directory permission and should also be avoided unless you really know what you're doing. You can press the tab button in order to auto complete the directory name. To learn more about linux or to contribute please visit http://www. FTP enables files to be transferred from one machine on a network to another. Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below. d — a directory -(dash) — a regular file (rather than directory or link) l — a symbolic link to another program or file elsewhere on the system Others are possible, but are beyond the scope of this manual. May 6, 2007 To display the type of a file, and the info about the type you can use the command line file, this command shows you the type of file no matter the extension it may have. How To Change Ownership of Files and Directories in Unix February 9, 2009 by Gleb Reys 8 Comments I've just been asked a question about changing the ownership of files from one Unix user to another, and thought it probably makes sense to have a quick post on it. On our reference system, the root directory contains the following sub-directories:. cd / go to the root directory cd go to your login (home) directory cd ~username go to username's login (home) directory not allowed in the Bourne shell cd ~username/directory go to username's indicated directory cd. Or you can browse Linux man pages by name; choose the first letter of the name of the Linux command, function, or file you are interested in. They have been used on FreeBSD, Linux, and MacOSX with success.