Common Linux commands

I will list a few commonly used Linux commands:


pwd - shows the path of current working directory.

cd - change directory. It is possible to specify either full path to the cd command or a relative path. cd also takes a couple of special arguments. cd with two dots will move one directory up.

cd with no arguments will change location to home folder,

cd with dash will take a user one level up.

ls command will list the files that are in current working directory. ls command has a few options.

cat command will list the content of a file to a standard output.

cp command will copy the files. cp command has a few options.

mv command will move or rename a file.

mkdir command will create a directory in a current working folder.

rm command will delete a file or a folder. rm command has a few options.

YouTube video

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator