|
What is UMASK?
When user creates a file or directory it will be created
with permission. The default value is 022.
How will you delete last ten days records in OS level? $ find . –mtime -10 exec rm {} \
What is RPM? How will you install RPMS? RPM Package Manager (originally Red Hat Package Manager,
abbreviated RPM) is a package management system.
How will you find how many users were connected to a database named “sss” from linux level? ps –ef|grep –i local|grep sss
How will you get the count of all arguments that is passed in a Shell script? echo $#
How to check whether the last command executed successfully or not? Echo$?
From Linux how will you find how many users were connected to the database “sakthi”? ps -ef|grep -i local|grep -i sakthi|wc -l
How will you view Alertlog file from different directory? tail -f /home/oracle/db/bdump/alertlog.log
How will you see all the arguments in shell script? echo $*
How will you configure host name and ipaddress? Connect to root user and use neat command to add the hostname
and ipaddress. Then restart the network service using
How will execute a shell script in background? ./script.sh &
Where will you find the OS level errors? In /var/log/messages and
How to view last 15 lines of a file?
How to copy a folder from one server to another? First compress the folder using tar command
or using FTP you can transfer a file
How to edit the crontab? How will you schedule on a file January 26 10:30 am? crontab -e Edit your crontab file, or create one if it
doesn’t already exist.
How to find the size of a directory and a file? $du –sh directory_name
How will you find the modified the files in a home directory? $find $HOME –type f –mtime 0
What is Chmod –R? chmod -R 755 directory (-R set permissions recursively
, ie changes the permission to current directory,sub direstory and files)
How will you find obsolete path of “sqlplus”? $which sqlplus
What are the Compress commands? Gzip
|
|
More Linux Questions
Linux Forum - Do you have a Linux Question? Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|