Difference between revisions of "Using the Console"

From Wiki [en] OpenMandriva
Jump to: navigation, search
(add standards notif)
Line 1: Line 1:
{{Standards|Wiki page needs to be organised, parent page needed}}
+
The command line is sometimes the only way to fix some tricky issues. With the console you can do a lot of admin tasks that cannot be done otherwise.
  
== Bootloader/Systemstart ==
+
There are gazillion web pages about this topic. Here, we will only give some some tips to help you to find the infos you need to solve the problems you can encounter with your preferred OS.
  
*[[Bootloader - From where to dug out the previous contents of the mbr?]]
+
==Open a console==
*[[Lilo]]
+
*[[Grub1]]
+
*[[Grub2]]
+
  
== Talk/Chat Programs, Conversations and Akronyme ==
+
* You can open a text console named tty2 to tty6, also called virtual consoles, from the desktop with this combination of keys:
 +
  ALT CTL Fn
 +
with n = 2, 3, 4, 5, 6
  
[[ historychat | The History from Chatting and conversations acronyms ]]
+
Currently, "1" is reserved for the graphical environment.
  
[[ acronym-complete | Internet Acronym's the present currently available ]]
+
When the console is opened, you can log as a normal user or as root.
  
== Prompt ==
+
Enter the name of the user (or root) then its password.
  
*[[Prompt or: How I move into Linux at the command prompt]]
+
You can now use the command line at the prompt.
*[[chmod or change file permissions]]
+
*[[diffrend Strings that are making life easier and more Informative]]
+
*[[Syslog on the Console]]
+
*[[Create bootable images, and bootable CD-Rom's]]
+
  
 +
* You can also open a graphical console from the desktop, either from the menu/tools or with:
 +
ALT F2
 +
then
 +
konsole
 +
There are other programs that emulate a console (also called terminal). See '''mcc/install & remove software/Sytem/Terminals'''
 +
==using the console==
 +
By default, when you get a prompt, you are using the command interpreter called ''bash''.
 +
There are some features that can help you in daily use.
  
== Diffrent Scripts ==
+
====UP or DOWN arrows====
 +
Recall the last commands
  
 +
====CTL R====
 +
Enter some characters to see the last command in which the string was used
 +
 +
====copy/paste lines in konsole====
 +
Like other graphical tools, konsole lets you copy the displayed lines or paste a command at the prompt.
 +
* copy: simply select the text with the mouse then use the menu to copy or
 +
CTL MAJ C
 +
Thus, you can easily show the result of a command in the forum for example.
 +
 +
* past: here too, you can use the menu or:
 +
CTL MAJ V
 +
Thus, you can past a complex command in one click :)
 +
 +
 +
 +
==Useful tools==
 +
====Midnight commander====
 +
mc
 +
 +
It's a file manager with some useful features like exploring the rpms, editing text files, ... It requires a little practice but can be a great help when the graphical desktop refuses to start.
 +
 +
====journalctl====
 +
journalctl -f
 +
This is the ''systemd'' tool that lets you display the system logs.
 +
The ''-f'' option monitors the system events in real time.
 +
 +
====bash history====
 +
An [http://www.youtube.com/watch?v=sPF29NyXe2U improved "CTL R"].
  
 
[[Category:Howto]]
 
[[Category:Howto]]

Revision as of 09:53, 19 February 2017

The command line is sometimes the only way to fix some tricky issues. With the console you can do a lot of admin tasks that cannot be done otherwise.

There are gazillion web pages about this topic. Here, we will only give some some tips to help you to find the infos you need to solve the problems you can encounter with your preferred OS.

Open a console

  • You can open a text console named tty2 to tty6, also called virtual consoles, from the desktop with this combination of keys:
ALT CTL Fn

with n = 2, 3, 4, 5, 6

Currently, "1" is reserved for the graphical environment.

When the console is opened, you can log as a normal user or as root.

Enter the name of the user (or root) then its password.

You can now use the command line at the prompt.

  • You can also open a graphical console from the desktop, either from the menu/tools or with:
ALT F2

then

konsole

There are other programs that emulate a console (also called terminal). See mcc/install & remove software/Sytem/Terminals

using the console

By default, when you get a prompt, you are using the command interpreter called bash. There are some features that can help you in daily use.

UP or DOWN arrows

Recall the last commands

CTL R

Enter some characters to see the last command in which the string was used

copy/paste lines in konsole

Like other graphical tools, konsole lets you copy the displayed lines or paste a command at the prompt.

  • copy: simply select the text with the mouse then use the menu to copy or
CTL MAJ C

Thus, you can easily show the result of a command in the forum for example.

  • past: here too, you can use the menu or:
CTL MAJ V

Thus, you can past a complex command in one click :)


Useful tools

Midnight commander

mc

It's a file manager with some useful features like exploring the rpms, editing text files, ... It requires a little practice but can be a great help when the graphical desktop refuses to start.

journalctl

journalctl -f

This is the systemd tool that lets you display the system logs. The -f option monitors the system events in real time.

bash history

An improved "CTL R".