File & Directory Settings

Updated on: 22.Apr.2014
  •  To change user’s home directory:

  •            sudo usermod -d /home/newdirectory -m ftpuser

  • To change the directory/file permission (where ‘777’ is full access to everyone - refers to the Reference section in this topic).

  •           chmod777 my_directory

  • To create directory => mkdir my_new_directory
  • To remove directory =>rm -r my_directory
  • To edit a text file => sudo nano filename
  • To copy file/directory => cp from_file to_file
  • To rename or move file/directory => mv old_name new_name


Reference:

For chmod permissions:

https://ss64.com/bash/chmod.html


No comments:

Post a Comment