Posted by Muhammad Nasir on 21:27
1. Vim
· How can you cause vim to enter Input mode? How can you make vim revert to Command mode? Using “i” for input mode and “esc” for revert to command mode.
1. To get into the input mode you press either ‘a’ or ‘i’ key. And to revert back to the command mode you press the ‘escape’ key.
· What is the Work buffer? Name two ways of writing the contents of the Work buffer to the disk. The Work buffer is the area of memory where vim stores the text you are
editing. A”:w” command writes the contents of the work buffer to disk but does not end your editing session. A ZZ command writes the contents of The work buffer to disk and ends your editing session.
2. Vim stores the text being edited in the work buffer.
:w command...
Posted by Muhammad Nasir on 06:50
· Go into the tmp directory:· cd /tmp;
· Make a directory called original· mkdir original; cd original;
· Copy the /etc/host.conf file or any file to test with here· cp /etc/host.conf .;
· List the contents and take note of the inode (first column)· ls -il; = 143265 -rw-r--r-- 1 Nasir Nasir 92 ……. host.conf
· Create a symbolic link to host.conf called linkhost.conf· ...
Posted by Muhammad Nasir on 06:39
· List files which are readable for current user in /sbin directory· ls -l /sbin; find /sbin -perm -u=r -type f -exec ls -l {} \;
· Create a file and change its permissions so that owner can only read the file and the respective group can read/write the file while other can read/write/execute the file using octal values· touch file; chmod 467 file;
· Change the permissions of the file so that user can read/write/execute the file, group can read/execute the file and others can only read the file without using octal values· chmod u=rwx,g=rx,o=r...
Posted by Muhammad Nasir on 22:55
1. find· Find all lib files greater than 100 KB in /lib· find /lib -size +100k· This will print many file you can view smoothly by pressing ENTER just append “|more” with the command
· Find all files which are smaller than 200 bytes· find -size -200b· There is no path specified so we can optionally specify path as current directory “.”
· Find all symbolic links in /lib· find /lib -type...
Posted by Muhammad Nasir on 05:53
— Show the present working directory— pwd
— Show the current user's session information in long format— ps -l
— Show the current user's group membership— id -g; id –gn
— Show the current user's PATH— echo $PATH;
— List the contents of /boot in long format in three ways: — Calling ls with an absolute path— ls -l /boot;— Calling ls with a relative path— ls -l ../../boot;— Changing directory to /boot and calling ls— cd /boot ;ls -l
— Make a directory in the current user's home directory called lab2 — mkdir lab2
— Make two files in the lab2 directory: test and .test— cd lab2; vi test; vi .test; OR touch test ; touch .test;— touch lab2/test ; touch lab2/.test;...
Posted by Muhammad Nasir on 11:16
Attitude: In project management an attitude is a response toward an idea, event, in situation or to a person positively or negatively. One other definition is a mental situation for any event, situation or idea and response to particular event.Attitude and IT project: As we know from attitude definition that it is a response toward a particular event so attitude has a great effect on IT projects. Developing an IT project is a great challenge for IT...