1. Man – Online Manual Page for Linux Commands Displaying Manual or Help Page # man find Getting Short Description # man -f ifconfig Getting List of commands using keyword # man -k “network” Converting Manual Page into Portable Format [ Text , PDF , PS ] For Text File conversion # man ls | [...]
1. cp command This command is used for copying folders and files from source to destination. Copying Files # cd /home/anthoniraj/uploads/ # cp kavidhai.pdf /opt/ [copy the file kavithai.pdf into /opt folder] # cp kavidhai.pdf sam.txt /opt/ [copy the files kavithai.pdf and sam.txt into /opt folder ] Copying Folders # cp -r uploads/ /opt/ [Copy [...]
apropos Each manual page has short description available within it, apropos command will search the command short description with the given keyword. This command is same as man -k option. but the advantage of apropos is using regular expression for searching the commands. Example #apropos “print” #apropos -r “^[p]+[g]$” pg (1) – browse pagewise through [...]
“Linux: the operating system with a CLUE… Command Line User Environment”. Now a days , everything you can do with GUI mode, even though graphical mode is user friendly , only user can do their work more faster way using commands. As a Linux beginners , you need to know at least some basic commands [...]
1. Shutdown o init 0 o shutdown -h now + -a: Use file /etc/shutdown.allow + -c: Cancel scheduled shutdown. o halt -p + -p: Turn power off after shutdown. o poweroff 2.Reboot o init 6 o shutdown -r now o reboot 3.Enter single user mode: o init 1
“tail” command – used to Print the last few lines of each FILE to standard output. Syntax : tail [options] filename [Source from Wikipedia]By default, tail will print the last 10 lines of its input to the standard output. With command line options the number of lines printed and the printing units (lines, blocks or [...]
1.mkdir –make directories or folder# mkdir [dirname]–> creates specified directory 2.cd – change directory path# cd [dirname]–> switches into specified directory# cd .. –>moves one directory up# cd ../../ —> moves two directories up (and so on)# cd –> brings you to highest level of your home directory 3.rm – delete files and directories# rmdir [...]
“head” command – used to Print the first 10 lines of each FILE to standard output. Syntax : head options filename Examples1) Sample file root@VIT#vi sample.c//Write a program to display the name and address of the computer that we are currently//working on. #include #include #include #include #include int main(int argc,char *argv[]){struct hostent *he; // note [...]
mv command is used for moving file from one place to other Syntax mv [OPTION]… SOURCE… DIRECTORY Example1. [root@myclient1 ~]# mv sample.c /home/ameer/rename command is used for rename the given file and also we can use mv command for rename the file Syntax rename from to file… mv SOURCE DEST Examples1. [root@myclient1 ~]# rename abc.pl [...]
cp command is used to copy the files and directories from one place to other. Syntax cp options source destination Examples : 1. For copying one file from one location to other [root@MB327SCS068 antony]# cp sample.c /home/admin/ Now the sample.c (Which is in /home/antony) has been copied into /home/admin 2. For copying more than one [...]
