LINUX CMD
$ cd : change directory $ cd / $ cd bin
$ ls : list directories
$ ls -lart : list all hidden and non hidden files and folders
$ pwd : print working directory
$ mv file.c sub-dir/ : for moving "file.c" in subediectory "sub-dir"
$ cp file.c sub-dir/ : for copying "file.c" in subdirectory "sub-dir"
$ mkdir fol-der : for making a sub directory "fol-der" in current directory
$ touch file.c : for creating a file "file.c" or "file.txt" or "file.cpp" in present directory
$ cp file-path1 dir-path2/ : creating a copy of file at path1 to directry of path 2
$ cd ../ : going back to previous directory
$ sudo cmd : writing sudo before any reqular cmd make you to use your root power to do
$ sudo su cmd : make user to do any thing without thinking about secourity (not recommend)
$ sudo apt-get update : downlaod essential softwares from apt
$ sudo apt-get upgrade : install .......
$
Comments
Post a Comment