Linux Technical Query!

ArjunkumarArjunkumar Member Posts: 6 ■■■□□□□□□□
Hello Everyone, I am a new one on this site. I just want to know the most important questions of Linux. My interview has been scheduled for next to next week. If anyone helps me please suggest some tricks and tips. I have already prepared to some topics like basic components of Linux, BASH and DOS, daemons, swap space in Linux and some more. 
Tagged:

Comments

  • nisti2nisti2 Member Posts: 503 ■■■■□□□□□□
    And what's your background and the position that you are applying for? 
    2020 Year goals:
    Already passed: Oracle Cloud, AZ-900
    Taking AZ-104 in December.

    "Certs... is all about IT certs!"
  • rohanjoshi0894rohanjoshi0894 Member Posts: 3 ■■□□□□□□□□
    Hi,
    Might be he is asking for Linux Administration Jobs, Here I am listing a few questions through you can make preparation for Linux Interview Questions:
    • QCan you tell us about the basic components of Linux?
    • QPlease draw a comparison between BASH and DOS.
    • QHow will you check out how much memory Linux is using?
    • QHow will you check out how much memory Linux is using?
    • QCan you tell us about the various kinds of permission under Linux? Also, explain how to change permissions.
    • QPlease explain the virtual desktop and how to share a program across different virtual desktops under Linux.
    • QWhat do you understand by daemons?
    • QPlease explain the various modes when using vi editor.
    • QWhat are the contents of /usr/local?
    • QTell us how you will execute more than one command or program from a single command line entry.
    • QWhat do you mean by hard links in Linux?
    • QPlease explain case-sensitivity issues in Linux.
    • QCan you tell what does a nameless directory represent in Linux?
    • QCan you draw the Linux architecture?
    • QPlease explain how to enable curl on Ubuntu LAMP stack and root logging in Ubuntu?
    • QHow will you append one file to another in Linux?
    • QWhat command would you use for editing, searching, and replacing text in Linux?
    • QWhat do you understand by swap space in Linux?
    • QPlease explain how you will run a Linux program in the background together with starting the Linux Server.
    • QCan you explain how to remote login with SSH?
    • QPlease explain checking for Rootkit infections in Linux.
    • QHow will you setup Password Aging in Linux?
  • rohanjoshi0894rohanjoshi0894 Member Posts: 3 ■■□□□□□□□□
    Hi Ankit,

    here I am sharing with you some basic Linux command:

    $ man command-name
    

    adduser/addgroup Command

    $ sudo adduser tecmint

    agetty Command

    $ agetty -L 9600 ttyS1 vt100
    

    alias Command

    $ alias home='cd /home/tecmint/public_html'
    

    anacron Command

    apropos Command

    $ apropos adduser
    

    apt Command

    $ sudo apt update
    

    apt-get Command

    $ sudo apt-get update
    

    aptitude Command

    $ sudo aptitude update
    

    arch Command

    $ arch 
    

    arp Command

    $ sudo arp-scan --interface=enp2s0 --localnet  
    

    at Command

    $ sudo echo "shutdown -h now" | at -m 23:55
    

    atq Command

    $ atq
    

    atrm Command

    $ atrm 2
    

    awk Command

    $ awk '//{print}'/etc/hosts

    batch Command

    basename Command

    $ basename bin/findhosts.sh
    

    bc Command

    $ echo 20.05 + 15.00 | bc
    

    bg Command

    $ tar -czf home.tar.gz .
    $ bg 
    $ jobs
    

    bzip2 Command

    $ bzip2 -z filename      #Compress
    $ bzip2 -d filename.bz2  #Decompress
    

    cal Command

    $ cal
    

    cat Command

    $ cat file.txt
    

    chgrp Command

    $ chgrp tecmint users.txt
    

    chmod Command

    $ chmod +x sysinfo.sh
    

    chown Command

    $ chmod -R www-data:www-data /var/www/html
    

    cksum Command

    $ cksum README.txt
    

    clear Command

    $ clear
    

    cmp Command

    $ cmp file1 file2
    

    comm Command

    $ comm file1 file2
    

    cp Command

    $ cp /home/tecmint/file1 /home/tecmint/Personal/

    date Command

    $ date
    $ date --set="8 JUN 2017 13:00:00"
    

    dd Command


    $ dd if=/home/tecmint/kali-linux-1.0.4-i386.iso of=/dev/sdc1 bs=512M; sync
    

    df Command

    $ df -h
    

    diff Command

    $ diff file1 file2
    

    dir Command

    dir command works like Linux is command, it lists the contents of a directory.

    $ dir
    

    dmidecode Command


    $ sudo dmidecode --type system 

    df Command

    $ du /home/aaronkilik
    

    echo Command

    $ echo “This is TecMint - Linux How Tos”
    

    eject Command

    $ eject /dev/cdrom
    $ eject /mnt/cdrom/
    $ eject /dev/sda
    

    env Command

    $ env
    

    exit Command

    $ exit
    

    expr Command

    $ expr 20 + 30
    

    factor Command

    $ factor 10
    

    find Command

    $ find /home/tecmint/ -name tecmint.txt
    

    free Command

    Free command shows the system memory usage (free, used, swapped, cached, etc.) in the system including swap space. Use the -h option to display output in human friendly format.

    $ free -h 

    grep Command

    grep Command searches for a specified pattern in a file (or files) and displays in output lines containing that pattern as follows.

    $ grep ‘tecmint’ domain-list.txt
    

    groups Command

    groups command displays all the names of groups a user is a part of like this.

    $ groups
    $ groups tecmint
    

    gzip Command

    Gzip helps to compress a file, replaces it with one having a .gz extension as shown below:

    $ gzip passwds.txt
    $ cat file1 file2 | gzip > foo.gz
    

    gunzip Command

    gunzip expands or restores files compressed with gzip command like this.

    $ gunzip foo.gz
    

    head Command

    head command is used to show first lines (10 lines by default) of the specified file or stdin to the screen:

    # ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head 
    

    history Command

    history command is used to show previously used commands or to get info about command executed by a user.

    $ history

    hostname Command

    hostname command is used to print or set system hostname in Linux.

    $ hostname
    $ hostname NEW_HOSTNAME
    

    hostnamectl Command

    hostnamectl command controls the system hostname under systemd. It is used to print or modify the system hostname and any related settings:

    $ hostnamectl
    $ sudo hostnamectl set-hostname NEW_HOSTNAME
    

    hwclock

    hwclock is a tool for managing the system hardware clock; read or set the hardware clock (RTC).

    $ sudo hwclock
    $ sudo hwclock --set --date 8/06/2017
    

    hwinfo Command

    hwinfo is used to probe for the hardware present in a Linux system like this.

    $ hwinfo

    id Command

    id command shows user and group information for the current user or specified username as shown below.

    $ id tecmint
    

    ifconfig Command

    ifconfig command is used to configure a Linux systems network interfaces. It is used to configure, view and control network interfaces.

    $ ifconfig
    $ sudo ifconfig eth0 up
    $ sudo ifconfig eth0 down
    $ sudo ifconfig eth0 172.16.25.125
    

    ionice Command

    ionice command is used to set or view process I/O scheduling class and priority of the specified process.

    If invoked without any options, it will query the current I/O scheduling class and priority for that process:

    $ ionice -c 3 rm /var/logs/syslog
    

    iostat Command

    iostat is used to show CPU and input/output statistics for devices and partitions. It produces useful reports for updating system configurations to help balance the input/output load between physical disks.

    $ iostat 
    

    ip Command

    ip command is used to display or manage routing, devices, policy routing and tunnels. It also works as a replacement for well known ifconfig command.

    This command will assign an IP address to a specific interface (eth1 in this case).

    $ sudo ip addr add 192.168.56.10 dev eth1
    

    iptables Command

    iptables is a terminal based firewall for managing incoming and outgoing traffic via a set of configurable table rules.

    The command below is used to check existing rules on a system (using it may require root privileges).

    $ sudo iptables -L -n -v

    iw Command

    $ iw list 
    

    iwlist Command

    $ iwlist wlp1s0 scanning
    

    kill Command

    $ kill -p 2300
    $ kill -SIGTERM -p 2300
    

    killall Command

    $ killall firefox

    kmod Command

    $ kmod list
    

    last Command

    $ last 
    

    ln Command

    $ ln -s /usr/bin/lscpu cpuinfo
    

    locate Command

    $ locate -b '\domain-list.txt'
    

    login Command

    $ sudo login
    

    ls Command

    $ ls -l file1

  • ArjunkumarArjunkumar Member Posts: 6 ■■■□□□□□□□
    Can you share me all questions answer which you mention above?
  • itdeptitdept Registered Users Posts: 275 ■■■■■■□□□□
    Use a search engine and learn the answers at the same time. Spoonfeeding is not going to help
  • shochanshochan Member Posts: 1,013 ■■■■■■■■□□

    rohanjoshi0894

    thanks for the study guides LMAO!
    CompTIA A+, Network+, i-Net+, MCP 70-210, CNA v5, Server+, Security+, Cloud+, CySA+, ISC² CC, ISC² SSCP
Sign In or Register to comment.