-
Create a new user (preferably using your name as login name)Use the command : adduser newuser.
-
Reset password of userUse the command : sudo passwd newuser.
-
Create a directory called my_group at home and give permissions to user and groupUse the command mkdir my_group (This will create a folder call my_group).And then use the chmod to provide permission
-
Create a directory called my_user at home and give permissions to user onlyUse the command : chmod
-
How many network interfaces your computer has?Use the command : ls /sys/class/net
-
Install xmind on your desktop without using yum.Steps followed
1.Download xmind zip folder
2.Unzip the folder
3.type the command sudo then drag nad drop the setup.sh file to the terminal. -
How you get last 5 entries of /var/log/messagesUse the command : tail -n 5 /var/log/syslog (in latest Linux versions /var/log/messages is replaced with /var/log/syslog ).
-
How you get first 5 entries of /var/log/messagesUse the command : head -n 5 /var/log/syslog
-
Sort directory/file list based on time inside your home directory.Use the command : gsettings set org.gnome.nautilus.preferences default-sort-order "mtime"
-
Rename your directory my_group to my_group1Use the command : mv my_group my_group1.
-
How you view partition information?Use the command : sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
-
How you get total sizes of sub directories inside /var using single command?Use the command : du -sh
-
Change system date to yesterday using command lineUse the command : sudo date 110114232017.24 (here the format is MMddhhmmyyyy.ss. eg: here mention date and time is 2017/11/01 14:23:24)
-
Remove directory my_groupUse the command: rm my_group1
-
What are the following utilizations of your desktop
-
CPU : sudo apt-get install htop
then to run type ‘htop’ -
Memory: watch -n 5 free -m
-
Disk: df -h
-
Thursday, November 2, 2017
Getting familiar with Linux terminal commands
Day1: (2017/01/11)Getting familiar with Linux terminal commands
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment