Loading
Showing posts with label Linux commands. Show all posts
Showing posts with label Linux commands. Show all posts

Basic operations For linux or Ubuntu

any_command --help |more  Display a brief help on a command (works with most commands). "--help" works similar to DOS "/h" switch. The "more" pipe is needed if the output is longer than one screen. man topic  Display the contents of the system manual pages (help) on the topic. Try man man first. Press "q" to quit the viewer. The command info topic works similar and may contain more up-to-date information. Manual pages can be hard to read. Try any_command --help for short, easy to digest help on a command. If more info needed, have a look to the directory /usr/doc. To display manual page from a specific section, I may use something like in this example:  man...

Common commands--system info for Linux

pwd  Print working directory, i.e., display the name of my current directory on the screen. hostname  Print the name of the local host (the machine on which you are working). Use netconf (as root) to change the name of the machine. whoami  Print my login name. id username  Print user id (uid) and his/her group id (gid), effective id (if different than the real id) and the supplementary groups. date  Print or change the operating system date and time. E.g., I could change the date and time to 2000-12-31 23:57 using this command:  date 123123572000  To set the hardware (BIOS) clock from the system (Linux) clock, use the command (as root) setclock time  Determine...

Essential shortcuts and sanity commands for Linux

<Ctrl><Alt><F1>  Switch to the first text terminal. Under Linux you can have several (6 in standard setup) terminals opened at the same time. <Ctrl><Alt><Fn> (n=1..6)  Switch to the nth text terminal. tty  Print the name of the terminal in which you are typing this command. <Ctrl><Alt><F7>  Switch to the first GUI terminal (if X-windows is running on this terminal).  <Ctrl><Alt><Fn> (n=7..12)  Switch to the nth GUI terminal (if a GUI terminal is running on screen n-1). On default, nothing is running on terminals  8 to 12, but you can run another server ther...

Facebook Badge

 
Design by Cybermoshfiq | Bloggerized by Moshfiqur's Rahman - .