cd
|
Change directory
|
pwd
|
To find the exact
directory you are in type the command
|
cd ~/dir1
|
To navigate to a
sub-folder in your home directory
|
cd ..
|
Previous folder
(Go back)
|
rm
|
Remove file
|
rm -r
|
Remove folder
|
rm -rf FILE_NAME
|
Force remove
folder
|
tar cvzf
|
Zip/Archive folder
|
tar xvfz
|
Unzip/Unarchive
folder
|
Unzip
|
Unzip
File_Name.zip - to unarchive .zip files
|
Zip -r
|
Archive folder
with .zip extension.
|
mv
|
Move folder/file
MV comman is also
used to rename file name
|
/sbin/ifconfig
|
To view IP
addresses and configurations (similar to Windows ipconfig)
|
vi
|
View editor. Once
you are on view editor mode, press i to
insert and navigate the cursor with keyboard arrows to edit the content.
|
:wq!
|
Save and Quit view
editor mode.
|
:q!
|
Quit editor mode
without saving the changes.
|
cat OR less
|
File viewer
without editing privilege .
|
scp -r
|
Server copy file -
to copy file from server to server or other directories
|
ps -x
|
View running
services / processes
|
kill -9 [PID#]
|
Kill process by
force
|
tail -100f [log path]
|
Read last 100 rows
of a file.
Note: press Ctrl+C
to exit tail view.
|
nohup
|
Run
service/process in the background
|
export VAR_ENVR_NAME=
|
To set Variable
Environment
|
echo "$VAR_NAME"
|
View current
variable environemtn
|
scp file_name user_name@server_name:path
|
Copy files from
one user to another
|
sudo su - username
|
|
cp *
|
Copy
all from current file into target_path
If you
have multiple files that starts with the same syntax, i.e. file1, file2,
file3 -then you can use this command:
|
vi filename
|
Creates
a new file
|
cp /home/vizid/filename .
|
. Represents
current directory
|
top
|
View running
services
|
./opmnctl startproc ias-component=COMPONENT_NAME
|
To start/stop
individual OBIEE OPMN services, this command is used
|
touch
|
Create new file
(.txt)
|
Df
|
Check hard disk
space
|
du -sh
|
Check folder usage
space
|
Free -g
|
Check server RAM /
Memory usage
|
./opmnctl stopproc
ias-component=coreapplication_obips1
|
Stopping one BI
service at a time
|
find . -name SEARCH_TERM*
|
Will search all
subordinate folders from current directory
|
Saturday, December 15, 2012
Linux: Basic Commands via Putty
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.