Learning UNIX – Series I

UNIX

Aprendiendo UNIX,,en,UNIX es uno de los sistemas operativos más populares y confiables,,en,aprender UNIX es muy importante para los desarrolladores,,en,aprender los comandos y conceptos del sistema operativo UNIX es muy importante,,en,En esta serie,,en,hemos tratado de resumir los conceptos importantes de UNIX y su uso,,en,Espero que disfrutes leyendo esto,,en,Vamos a subir algunas series más para cubrir otras afirmaciones del sistema operativo UNIX,,en,Qué es UNIX,,en,Responder,,en,UNIX es un sistema operativo,,en,El sistema operativo consiste en programas que actúan como un enlace entre la computadora y el usuario final,,en,Cuáles son las diferentes variantes de UNIX disponibles,,en,Varias variantes de UNIX disponibles en el mercado son Solaris UNIX,,en,AIX,,en,UP UNIX,,en,BSD, etc.,,en,Cuáles son las tres partes en el sistema operativo UNIX,,en,Tres partes son kernel,,en,programas de utilidad estándar y los archivos de configuración del sistema,,en,Que es kernel,,en,núcleo,,en

Introducción: UNIX is one of the most popular and reliable OS. So, learning UNIX is very important for the developers. Specially, learning the commands and concepts of the UNIX OS is very important. In this series, we have tried to summarize the important concepts of UNIX and their usage. Hope you will enjoy reading this. We will come up some more series to cover other asserts of UNIX OS.







1: What is UNIX?

Answer: UNIX is an operating system. Operating system consists of programs that act as a link between the computer and the end user.

2: What are the different UNIX variants available?
Answer:
Various UNIX variants available in the market are Solaris UNIX, AIX, UP UNIX, BSD etc.

3: What are the three parts in UNIX operating system?
Answer:
Three parts are kernel, standard utility programs and the system configuration files.

4: What is kernel?
Answer: La kernel es el núcleo del sistema operativo UNIX,,en,Interactúa con el hardware,,en,maneja la memoria,,en,programar tareas y también hace la gestión de archivos,,en,¿Qué es shell?,,en,cáscara,,en,es una utilidad que procesa las solicitudes de los usuarios,,en,El shell interpreta el comando y llama al programa solicitado por el usuario,,en,¿Qué son los comandos y las utilidades?,,en,Hay varios comandos y utilidades disponibles para el uso diario,,en,Pocos ejemplos son como cp,,en,mv,,en,gato y grep, etc.,,en,Qué son los archivos y directorios en UNIX,,en,Todos los datos en UNIX están organizados en archivos y los archivos están nuevamente organizados en directorios,,en,Estos directorios están organizados en un sistema de archivos,,en,¿Cómo se inicia el sistema UNIX?,,en,Cuando enciendes el poder,,en,el sistema comienza a arrancar automáticamente y le solicita que inicie sesión,,en,¿Cómo se enumeran todos los archivos o directorios?,,en. It interacts with the hardware, manages memory, schedule tasks and also does the file management.

5: What is shell?
Answer:
La shell is a utility that processes user requests. The shell interprets the command and calls the program requested by the user.

6: What are Commands and Utilities?
Answer:
There are various command and utilities available for day to day use. Few examples are like cp, mv, cat and grep etc.

7: What are Files and Directories in UNIX?
Answer:
All data in UNIX is organized into files and files are again organized into directories. These directories are organized into file system.

8: How do you bootup UNIX system?
Answer:
When you turn on the power, the system starts booting up automatically and prompts you for log in.

9: How do you list out all the files or directories?
Answer:
Use ls comando para listar todos los archivos o directorios,,en,Que hace 'whoami,,en,comando hacer,,en,Este comando básicamente enumera el nombre de la cuenta asociada con el inicio de sesión actual,,en,Nombre algunos comandos de UNIX para apagar el sistema,,en,Algunos comandos son 'alto,,en,'apagado,,en,y 'cierre,,en,¿Cuáles son los tres archivos diferentes disponibles en UNIX,,en,Tres archivos diferentes son archivos ordinarios,,en,Directorios y archivos especiales,,en,Qué archivo se usa para acceder al hardware,,en,Se usan archivos especiales para acceder a hardware como discos duros,,en,Unidades de CD-ROM,,en,módems, etc.,,en,Qué son los personajes Meta en UNIX,,en,UNIX reconoce ciertos caracteres especiales como directivas de comando,,en,Estos personajes especiales se conocen como 'metacaracteres' como '*',,en,'Etc.,,en,Qué son los archivos ocultos en UNIX,,en.

10: What does ‘whoami’ command do?
Answer:
This command basically lists the associated account name with the current login.







11: Name some UNIX commands to shutdown the system.
Answer:
Some commands are ‘halt’, ‘poweroffand ‘shutdown.

12: What are the three different files available in UNIX?
Answer:
Three different files are Ordinary Files, Directories and Special Files.

13: Which file is used to access hardware?
Answer:
Special files are used to access hardware such as hard drives, CD-ROM drives, modems etc.

14: What are Meta characters in UNIX?
Answer:
UNIX recognizes certain special characters as command directives. These special characters are known as ‘meta characters’ like ‘*’,’?’ etc.

15: What are hidden files in UNIX?
Answer:
UNIX usa la mayoría de estos archivos ocultos para almacenar información de configuración,,en,¿Qué editor se utiliza con más frecuencia en UNIX para crear archivos?,,en,El 'vi,,en,editor se usa para crear archivos comunes en cualquier sistema UNIX,,en,Simplemente necesitas dar el siguiente comando,,en,Usuario,,en,vi nombre de archivo,,en,Qué comando se usa para mostrar el contenido de un archivo,,en,El gato,,en,comando se utiliza para ver el contenido de un archivo,,en,A continuación se muestra un ejemplo simple para ver el contenido de un archivo,,en,cat nombre de archivo,,en,¿Cuáles son las tres corrientes en UNIX,,en,Tres corrientes son stdin,,en,referido como entrada estándar,,en,stdout,,en,conocido como salida estándar,,en,y stderr,,en,referido como error estándar,,en,¿Qué es 'Directorio de inicio'?,,en,Este es el directorio donde se encontrará la primera vez que inicie sesión,,en.

16: Which editor is most commonly used in UNIX to create file?
Answer:
The ‘vi’ editor is used to create ordinary files on any UNIX system. You simply need to give following command:

[User]$ vi filename

17: Which command is used to display content of a file?
Answer:
The ‘cat’ command is used to see the content of a file. Following is the simple example to see the content of a file.

[User]$ cat filename

18: What are the three streams in UNIX?
Answer: Three streams are stdin (referred to as standard input), stdout (referred to as standard output) and stderr (referred to as standard error).

19: What is ‘Home Directory’?
Answer:
This is the directory where you will find yourself when you first login.

20: Cuáles son los diferentes tipos de permisos disponibles para un archivo en el sistema UNIX,,en,Los tres permisos son 'Permisos de propietario',,en,Permisos grupales,,en,y el otro,,en,mundo,,en,permisos,,en,¿Cuáles son los diferentes modos de acceso en UNIX,,en,Hay tres modos de acceso disponibles en UNIX,,en,Leer,,en,Otorga la capacidad de leer,,en,Escribir,,en,Otorga la capacidad de modificar / eliminar el contenido de un archivo,,en,Ejecutar,,en,Subvenciones para ejecutar un archivo como un programa,,en,Qué comando se usa para cambiar el permiso de archivo / directorio,,en,El 'chmod',,en,modo de cambio,,en,comando se usa para cambiar el permiso,,en,Hay dos formas de usar el modo simbólico chmod y el modo absoluto,,en,Describe los comandos para cambiar el propietario / grupo de un archivo,,en,El 'chown',,en,Cambio de propietario,,en,comando se usa para cambiar el propietario de un archivo,,en,Y 'chgrp',,en,cambio de grupo,,en?
Answer:
The three permissions are ‘Owner permissions’,’ Group permissions’ and the ‘Other (world) permissions’.

21: What are the different access modes in UNIX?
Answer:
There are three access modes available in UNIX.
Read (Grants the capability to read)

Write (Grants the capability to modify/remove the content of a file)

Execute (Grants to run a file as a program)

22: Which command is used to change the file/directory permission?
Answer: The ‘chmod’ (change mode) command is used to change the permission. There are two ways to use chmod symbolic mode and absolute mode.

23: Describe the commands to change the owner/group of a file.
Answer: The ‘chown'(change owner) command is used to change the owner of a file. And ‘chgrp'(change group) comando se usa para cambiar el grupo de un archivo,,en,Qué es el archivo '.profile,,en,en UNIX,,en,El perfil,,en,el administrador del sistema de la máquina UNIX mantiene el archivo,,en,Contiene toda la información de inicialización de shell requerida por todos los usuarios en ese sistema,,en,¿Qué son las variables PS1 y PS2?,,en,Los caracteres que el shell muestra como su símbolo del sistema se almacenan en la variable PS1 y el prompt secundario predeterminado ',,en,el signo mayor que,,en,se almacena en la variable PS2,,en,¿Qué comando de UNIX se utiliza para hacer el formato menor de archivos?,,en,El pr,,en,comando se utiliza para hacer el formato menor de archivos en la pantalla del terminal o para una impresora,,en,¿Cuándo usas los comandos 'lp' y 'lpr'?,,en,El comando 'lp,,en,o 'lpr,,en.

24: What is ‘.profile File’ in UNIX?
Answer: The ‘.profile’ file is maintained by the system administrator of the UNIX machine. It contains all the shell initialization information required by all users on that system.

25: What are PS1 and PS2 variable?
Answer: The characters that the shell displays as your command prompt are stored in PS1 variable and the default secondary prompt’ >’ (the greater than sign) is stored in PS2 variable.

26: Which UNIX command is used to do the minor formatting of files?
Answer: The ‘pr’ command is used to do the minor formatting of files on the terminal screen or for a printer.

27: When do you use ‘lp’ and ‘lpr’ Commands?
Answer:
The command ‘lp’ or ‘lpr’ is used to print a file on paper as opposed to the screen display.

28: Can we use UNIX command to send email?
Answer:
UNIX ‘mail’ command is used to send and receive email.

Here is the syntax to send an email:

[User]$mail [-s subject] [-c cc-addr] [-b bcc-addr] to-addr

29: What is ‘pipe’ in UNIX?
Answer:
In UNIX ‘pipe'(|) can be defined as a connector between two or more commands. It is used so that the output from one program becomes the input of the next program.







30: What is ‘filter’ in UNIX?
Answer:
Some time a program takes its input from one program, performs some operation on that input, and then writes the result to the standard output. This is known as ‘filter’.

31: What is ‘grep’ Command?

Answer: The ‘grep’ command is used to search a file or files for lines that have a certain pattern. El uso más simple de grep es buscar un patrón que consta de una sola palabra,,en,¿Qué hace?,,en,El 'tipo,,en,comando se utiliza para organizar las líneas de texto alfabética o numéricamente,,en,¿Cuáles son las dos formas de ejecutar un proceso en UNIX,,en,Las dos formas de comenzar un proceso,,en,ejecutar un comando,,en,son 'Procesos de primer plano,,en,y 'Procesos de fondo,,en,Cómo detener un proceso en UNIX,,en,Un proceso puede detenerse de varias maneras,,en,Enviando un CTRL,,en,Pulsación de tecla C,,en,el carácter de interrupción predeterminado,,en,saldrá del comando pero funciona cuando el proceso se está ejecutando en modo de primer plano,,en,Si un proceso se está ejecutando en modo de fondo, primero debe obtener su Id. De trabajo usando el comando 'ps' y luego usar el comando 'matar' para matar el proceso.,,en,Que es 'Zombie,,en.

32: What does ‘sort’ command do?
Answer:
The ‘sort’ command is used to arrange lines of text alphabetically or numerically.

33: What are the two ways to run a process in UNIX?
Answer:
The two ways to start a process (run a command) are ‘Foreground Processes’ and ‘Background Processes’

34: How do you stop a process in UNIX?
Answer:
A process can be stopped in various ways. Sending a CTRL + C keystroke (the default interrupt character) will exit the command but it works when the process is running in foreground mode. If a process is running in background mode then first you need to get its Job ID using ‘ps’ command and then use ‘kill’ command to kill the process.

35: What is ‘Zombie’ process?
Answer:
Some time even after killing a process, a ‘ps’ listing may still show the process with a Z state. This is a zombie, or defunct, process which means the process is dead and not being used.

36: What is ‘Daemon’ process?
Answer:
System related background processes are known as ‘Daemons’. These processes are run with the permissions of root and services requests from other processes.

37: What is ‘top ‘command?
Answer:
The ‘top’ command is a very useful tool. It quickly shows processes sorted by various criteria.

38: What is ‘Job ID’ and ‘Process ID’?
Answer:
The ‘Job ID’ is used to manipulate background and suspended processes. This number is different from the process ID and is used because it is shorter.

39: What is ‘ping’ utility?
Answer:
The ‘ping’ command is used to send an echo request to a host available on the network. Using this command you can check if your remote host is responding well or not.

40: What is ‘ftp ‘ utility?
Answer: The command ‘ftp’ stands for ‘File Transfer Protocol’. This utility is used to upload and download your file from one computer to another computer.

41: What is ‘telnet’ utility?
Answer:
The ‘Telnet’ utility is used to allow a computer user at one site to make a connection, login and then conduct work on a computer at another site.

42: What is ‘finger’ utility?
Answer:
The ‘finger’ command is used to display information about users on a given host which can be either local or remote.

Sometime ‘finger’ is disabled on other systems for security reasons.

43: What is ‘VIM’?
Answer: There is an improved version of ‘vi’ editor available which is called VIM. Here VIM stands for ‘Vi Improved’.







 

Etiquetado en:, ,
============================================= ============================================== Buy best TechAlpine Books on Amazon
============================================== ---------------------------------------------------------------- electrician ct chestnutelectric
error

Enjoy this blog? Please spread the word :)

Follow by Email
LinkedIn
LinkedIn
Share