Useful Commands in Ubuntu
- ls Lists the current directory.It’s like the MS-DOS dir command.
- ls dir Lists the specified directory.
- cat file Concatenates (adds) the contents of the file to your screen.It’s like the MS-DOS type command.
- more file Displays the file one page at a time.
- tail file Displays the file one page at a time from the end of the file.
- pwd Shows name of the current directory.
- cd dir Changes to the specified directory.It’s like the MS-DOS chdir command.
mv: Short for move, this command can be used to move your files from one folder to another.
rm: Short for remove, this command is used to remove any files or folders.
cd: Short for change, you can use this command to change your current directory.
cp: Short for copy, this command can be used to copy files or folders in a directory.
chown: This command is used to change ownership of a file.
chmod: This command is used to change permissions on a file.
ls: Short for list, this command can be used to view all of the files and folders in your current working directory.
pwd: Short for print working directory, this command can be used to display the directory in which you are currently working.
sudo: Also referred to as superuser do, a sudo command allows you to run other commands with administrative privileges. This command is especially useful for modifying files in a directory that a user wouldn't necessarily have access to.
cd: Short for change directory, this command can be used to change the directory in which you are currently working. There are a variety of cd commands that can be used to take you to specific files or folders.
cd / : An alternate to a basic cd command, the cd / command can be used to take you to the root directory.
cd .. : This command can be used to take you up one directory level.
cd - : This command can be used to navigate to a previous directory.
No comments