IRC Info

irc

Server: irc.dab.biz port: 6667 (SSL 6697)

/j #shellmix

Hypeshell.com

New shell server
 
 
The new server is like shellmix, but to register you have to pay 5 Euro. You only pay once. This is the only way to stop idiots and spammers.
Server features :

- Two Intel i7 CPU 2600K

- 16 GB DDR3

- Four HDD SATA3

- Separate Environment between user class

- Many IP

 - And everything looks like shellmix : )

 



Search

Comments Latest

  • Hi getting a "Server unexpectedly closed network c...
  • Great server, but tunnel is not working... :|
  • Looks like whoever installed putty on the computer...
  • Can't log into the ssh server to create a new acco...
  • I would like to help resolve this issue.

Advertising

Advertising

Basic shell scripting questions

Attention: open in a new window. Print
Basic shell scripting questions | TechInterviews
Basic shell scripting questions
  1. How do you find out what’s your shell? - echo $SHELL
  2. What’s the command to find out today’s date? - date
  3. What’s the command to find out users on the system? - who
  4. How do you find out the current directory you’re in? - pwd
  5. How do you remove a file? - rm
  6. How do you remove a - rm -rf
  7. How do you find out your own username? - whoami
  8. How do you send a mail message to somebody? - mail This e-mail address is being protected from spambots. You need JavaScript enabled to view it -s ‘Your subject’ -c This e-mail address is being protected from spambots. You need JavaScript enabled to view it
  9.  

  10. How do you count words, lines and characters in a file? - wc
  11. How do you search for a string inside a given file? - grep string filename
  12. How do you search for a string inside a directory? - grep string *
  13. How do you search for a string in a directory with the subdirectories recursed? - grep -r string *
  14. What are PIDs? - They are process IDs given to processes. A PID can vary from 0 to 65535.
  15. How do you list currently running process? - ps
  16. How do you stop a process? - kill pid
  17. How do you find out about all running processes? - ps -ag
  18. How do you stop all the processes, except the shell window? - kill 0
  19. How do you fire a process in the background? - ./process-name &
  20. How do you refer to the arguments passed to a shell script? - $1, $2 and so on. $0 is your script name.
  21. What’s the conditional statement in shell scripting? - if {condition} then … fi
  22. How do you do number comparison in shell scripts? - -eq, -ne, -lt, -le, -gt, -ge
  23. How do you test for file properties in shell scripts? - -s filename tells you if the file is not empty, -f filename tells you whether the argument is a file, and not a directory, -d filename tests if the argument is a directory, and not a file, -w filename tests for writeability, -r filename tests for readability, -x filename tests for executability
  24. How do you do Boolean logic operators in shell scripting? - ! tests for logical not, -a tests for logical and, and -o tests for logical or.
  25. How do you find out the number of arguments passed to the shell script? - $#
  26. What’s a way to do multilevel if-else’s in shell scripting? - if {condition} then {statement} elif {condition} {statement} fi
  27. How do you write a for loop in shell? - for {variable name} in {list} do {statement} done
  28. How do you write a while loop in shell? - while {condition} do {statement} done
  29. How does a case statement look in shell scripts? - case {variable} in {possible-value-1}) {statement};; {possible-value-2}) {statement};; esac
  30. How do you read keyboard input in shell scripts? - read {variable-name}
  31. How do you define a function in a shell script? - function-name() { #some code here return }
  32. How does getopts command work? - The parameters to your script can be passed as -n 15 -x 20. Inside the script, you can iterate through the getopts array as while getopts n:x option, and the variable $option contains the value of the entered option.

Advertising 3

Donate

Donate to keep shellmix alive


PayPal


Info BOX

Vote on shellmix !!!!

Free Shell Accounts - the biggest list on the net :-)

Who's Online

We have 1184 guests online

FaceShit info page if server is down 

name=